NOTE: This script is a work in progress
Bash script to sync secrets from Doppler to Cloudflare Pages using the Pages Update Project API.
The following enviroment variables must be set or else you will be prompted when running the script:
/** | |
* From https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-secrets-secrets_getsecretvalue.js.html | |
* | |
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* | |
* This file is licensed under the Apache License, Version 2.0 (the "License"). | |
* You may not use this file except in compliance with the License. A copy of | |
* the License is located at | |
* | |
* http://aws.amazon.com/apache2.0/ |
NOTE: This script is a work in progress
Bash script to sync secrets from Doppler to Cloudflare Pages using the Pages Update Project API.
The following enviroment variables must be set or else you will be prompted when running the script:
import os | |
from typing import get_type_hints, Union | |
from dotenv import load_dotenv | |
load_dotenv() | |
class AppConfigError(Exception): | |
pass | |
def _parse_bool(val: Union[str, bool]) -> bool: # pylint: disable=E1136 |
{ | |
"paddingVertical": "0px", | |
"paddingHorizontal": "0px", | |
"backgroundImage": null, | |
"backgroundImageSelection": null, | |
"backgroundMode": "color", | |
"backgroundColor": "rgba(255,255,255,1)", | |
"dropShadow": false, | |
"dropShadowOffsetY": "0px", | |
"dropShadowBlurRadius": "85px", |
template-deploy.yaml |
template-deployment.yaml |
dev: | |
FLASK_ENV=development python3 chuck.py |
#!/usr/bin/env python3 | |
# usage (dump a json list of user objects): python3 list_aws_account_access_keys.py | |
# usage (dump a combined lsit of access keys): python3 list_aws_account_access_keys.py keys_only | |
from dataclasses import dataclass | |
import json | |
import sys | |
from typing import List |
module "sourcegraph" { | |
source = "github.com/sourcegraph/deploy-sourcegraph-aws" | |
vpc_id = "vpc-b3708ed4" | |
subnet_id = "subnet-091a876e" | |
app_name = "sourcegraph-demo" | |
instance_type = "t2.xlarge" | |
key_name = "ryan-blunden" | |
} |
alias aws-list-vpcs="aws ec2 describe-vpcs | jq '.Vpcs[] | {VpcId,Tags}'" | |
alias aws-list-key-pairs="aws ec2 describe-key-pairs | jq '.KeyPairs[].KeyName'" |