This repository contains scripts for automating the creation of Route53 public hosted zones using AWS CloudFormation and Python.
Purpose:
Text file containing a list of domains for which Route53 public hosted zones will be created.
Format:
Each line in the file represents a single domain.
Example domains.txt
:
example1.com
example2.com
example3.com
Purpose:
Bash script for automating the creation of Route 53 hosted zones for each domain listed in domains.txt
.
Usage:
Execute this script to iterate through the domains in domains.txt
and invoke the Python script for each domain.
Purpose:
Python script for creating a Route 53 public hosted zone using AWS CloudFormation.
Usage:
Run this script with a domain as an argument to create a CloudFormation stack for the specified domain.
Purpose:
Temporary CloudFormation template generated by the Python script for creating a Route 53 hosted zone.
Note:
This file is generated dynamically during the execution of create_hosted_zone.py
.
Usage:
Populate the domains.txt
file with the desired domains.
Run the create_hosted_zones.sh
script to automate the creation of Route 53 hosted zones.
- Upload all files into AWS CloudShell Environment
- Grant permission to execute the scripts:
chmod +x create_hosted_zones.sh
chmod +x create_hosted_zone.py
- Execute the bash script:
./create_hosted_zones.sh