route53.tf 384 B

1234567891011121314
  1. /*
  2. Route53 is used to configure SSL for this cluster. A
  3. Route53 hosted zone must exist in the AWS account for
  4. this automation to work.
  5. */
  6. // Create A record to instance IP
  7. resource "aws_route53_record" "cluster" {
  8. zone_id = data.aws_route53_zone.cluster.zone_id
  9. name = var.route53_domain
  10. type = "A"
  11. ttl = "300"
  12. records = ["${aws_instance.cluster.public_ip}"]
  13. }