-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Setting up a Route53 association with a zone in another account fails #12465
Comments
I get:
The Thinking about this somewhat, I'm thinking I need two credentials: 1) to update the Route53 zone with the VPC association and 2) (possibly?) one to tell the VPC about this? |
http://docs.aws.amazon.com/Route53/latest/APIReference/API_AssociateVPCWithHostedZone.html Note http://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateVPCAssociationAuthorization.html Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization request, you must use the account that created the hosted zone. |
So I guess that if |
There seems to be more bugs lurking here. By issuing a
I then expected this to succeed:
However, it did not. It failed, I had to set a |
Looking at d6869f6, it's a good start I guess. However, because the A harder one than |
Duplicate of #10208. |
I've created the following module which by no means solves this issue but provides me with an alternative in the meantime, I hope this is fixed in the future, I might even take a look at the go code myself if I have time. |
Just as a note... when dealing with cross-account aws_route53_zone_association resources:
|
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Specifying a
provider
in theaws_route53_zone_association
resource doesn't work [as expected].Terraform Version
0.8.8
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Steps to Reproduce
aws_vpc
in each accountaws_instance
in each VPCaws_route53_zone_association
the VPC in the first account with this zone.aws_route53_zone_association
the VPC in the second account with the zone.The text was updated successfully, but these errors were encountered: