Skip to content

Mr-Saikiran/API-Gateway-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-Gateway-Automation

This module is to creates DNS records(A Record, CNAME) in Route53 zone.

Code

module "records" {
  source  = "route53/modules/records"
  version = "~> 2.0"

  zone_name = keys(module.zones.route53_zone_zone_id)[0]

  records = [
    {
      name    = "apigateway-b"
      type    = "A"
      alias   = {
        name    = "cluster-b.example-api.eu-west-1.amazonaws.com"
        zone_id = "********"
      }
    },
    {
      name    = ""
      type    = "A"
      ttl     = 3600
      records = [
        "10.10.10.10",
      ]
    },
  ]

Usage

To run this example you need to execute:

$ terraform init $ terraform plan $ terraform apply

Run terraform destroy when you don't need these resources.

About

ROUTE53 CNAME management through GHA & Terraform

Resources

Stars

Watchers

Forks

Languages