-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_rds_cluster: Adding hosted_zone_id as an exported attribute #3267
Conversation
Should be noted that while you can currently set route53 aliases for RDS db instances and RDS clusters, the route53 documentation claims you can't do it for RDS instances. I haven't found any documentation talking about RDS cluster aliases. Tested via the cli and by manually passing in the hosted zone to the aws_route53_record resource. It's only available through the api, not the console. https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-rds-db.html I can create some route53 alias acceptance tests for rds db instances and rds clusters if needed |
@ngenator thanks for submitting this! You're definitely on the right track, there are two other parts we'll need to address before this can get in:
"hosted_zone_id": {
Type: schema.TypeString,
Computed: true,
},
resource.TestCheckResourceAttrSet("aws_rds_cluster.default", "hosted_zone_id"), We can skip any acceptance testing beyond this for this PR as we've ensured that the If you don't have time to fix the above, just let us know and we can finish this up for you. Thanks again! 🚀 |
Whoops, nice catch. For some reason I thought the schema was for the input attributes. I'll fix that and add the acceptance test for the attribute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
make testacc TEST=./aws TESTARGS='-run=TestAccAWSRDSCluster_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSRDSCluster_basic -timeout 120m
=== RUN TestAccAWSRDSCluster_basic
--- PASS: TestAccAWSRDSCluster_basic (118.46s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 118.514s
This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
The API returns a hosted zone id so you can create alias records in route53. This pr adds the hosted zone id to the aws_rds_cluster resource so that you can use it in route53 to create alias records.