This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Get AWS credential for user | |
read -p 'AWS Access Key: ' ACCESS_KEY | |
read -sp 'AWS Secret Key: ' SECRET_KEY | |
read -p 'AWS MFA ARN: ' MFA_TOKEN_ARN | |
read -p '(Optional) Python Version: ' PYTHON_VERSION | |
PYTHON_VERSION=${PYTHON_VERSION:-3.5} | |
## Install build tools for compiling Python from source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import requests | |
DOMAIN_NAME = "<DOMAIN>" | |
SUB_DOMAIN = "<SUBDOMAIN>" | |
FQDN = SUB_DOMAIN + "." + DOMAIN_NAME | |
client = boto3.client("route53") | |
def get_hosted_zone_id(): |