Difference between revisions of "Terraform resource: aws route53 record"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
aws_route53_record | 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] | ||
+ | } | ||
Revision as of 07:57, 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] }
Error: no matching Route53Zone found Error: Your query returned no results. Please change your search criteria and try again.
Related
See also
- Terraform AWS: provider, resources, modules, data sources, VPC, IAM, Net, EC2, S3, Route53, ACM, CloudWatch, SES, RDS, ECS,
awscc, autoscaling, EKS
Advertising: