Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Latest commit

 

History

History

Terraform a new AWS Route53 Zone

Based on the following Terraform example.

Assumes:

  • AWS credentials are passed as environment variables
    • See AWS_* arguments here

Local testing

Copy sample configuration

cp terraform.tfvars.sample terraform.tfvars

Edit terraform.tfvars

Amend the values for

  • domain

Specify environment variables

export AWS_ACCESS_KEY_ID="xxx"
export AWS_SECRET_ACCESS_KEY="xxx"
export AWS_DEFAULT_REGION="xxx"

Replace occurrences of xxx above with appropriate values

Create zone

./create-zone.sh

Teardown zone

./destroy-zone.sh

Github Action

This action is workflow dispatched with inputs.

See aws-main-dns-dispatch.yml