terraform.aws-baseline-infra/modules/networking/r53-record
2023-11-24 21:02:20 +08:00
..
main.tf NEW: r53 record modules 2023-11-24 21:02:20 +08:00
README.md NEW: r53 record modules 2023-11-24 21:02:20 +08:00
variables.tf NEW: r53 record modules 2023-11-24 21:02:20 +08:00

r53-record sub module

Create route53 record

Example

module "r53-ftp" {
  source = "../../modules/networking/r53-record"

  record_name   = "ftp"
  record_type   = "A"
  record_values = ["192.168.0.100"]
  zone_id       = aws_route53_zone.zone.zone_id
}

module "r53-www" {
  source = "../../modules/networking/r53-record"

  record_name   = "www"
  record_type   = "A"
  record_values = null
  alias = [
    {
      zone_id                = "Z2LIHJ7PKBEMWN"
      name                   = "vpce-07b8a9af30673995f-2n2ird8h.ssm.ap-east-1.vpce.amazonaws.com"
      evaluate_target_health = true
    }
  ]
  zone_id = aws_route53_zone.zone.zone_id
}