A simple Hashicorp Terraform plan to create a primary DNS zone into AWS Route 53 and its records through variables from terraform.tfvars file.
- AWS account
- Terraform => 0.10.8
Supported record types as follows:
Record type | Supported |
---|---|
A | YES |
AAAA | NO |
CAA | NO |
CNAME | YES |
LOC | NO |
MX | YES |
NS | NO |
PTR | NO |
SOA | NO |
SRV | NO |
SPF | NO |
TXT | YES |
Clone the repository
git clone --depth 1 [email protected]:therefore-ca/terraform-aws-r53.git
Change folder
cd terraform-aws-r53
Initialize Terraform
terraform init
Edit terraform.tfvars file
vim terraform.tfvars
Check the plan
terraform plan
Create resources
terraform apply
It is possible to perform any of the actions described below:
Plan the creation of resources
terraform plan
Create the resources
terraform apply
Destroy the resources
terraform destroy
If you have problems, bugs, issues with or questions about this, please open it in Github issues page.
Needless to say, please do a little research before posting.
We gladly invite you to contribute for fixes, new features, or updates, large or small; We are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you a feedback on your design, and help you find out if someone else is working on the same thing.