Difference between revisions of "Terraform resource: aws route53 record"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
[[records]] = [aws_eip.lb.public_ip] | [[records]] = [aws_eip.lb.public_ip] | ||
} | } | ||
+ | |||
+ | == Example records == | ||
+ | * <code>[[aws_eip.lb.public_ip]]</code> | ||
+ | * <code>[[aws_instance.your_instance_name.private_ip]]</code> | ||
== Errors == | == Errors == |
Revision as of 08:12, 2 February 2023
aws_route53_record
Official example
resource "aws_route53_record" "www" { zone_id = aws_route53_zone.primary.zone_id name = "www.example.com" type = "A" ttl = 300 records = [aws_eip.lb.public_ip] }
Example records
Errors
Error: no matching Route53Zone found Error: Your query returned no results. Please change your search criteria and try again. Error: Incorrect attribute value type
Related
See also
aws route53
: [zone
|record
]- Terraform AWS: provider, resources, modules, data sources, VPC, IAM, Net, EC2, S3, Route53, ACM, CloudWatch, SES, RDS, ECS,
awscc, autoscaling, EKS
Advertising: