-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
ds/aws_prefix_list: Fix hardcoded regions #16521
Conversation
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.
Looking real good, just some suggestions to further handle partition differences now and later. 👍
|
||
data "aws_prefix_list" "s3_by_name" { | ||
name = "com.amazonaws.us-west-2.s3" | ||
name = "com.amazonaws.${data.aws_region.current.name}.s3" |
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.
Not for this PR, but might be good to add a reverse DNS prefix attribute to the aws_partition
data source since it varies across partitions outside AWS Commercial and GovCloud (US).
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.
Sort of related, there's also the issue of EC2 compute hostnames/domains. In #16582, I created resourceAwsEc2RegionalPrivateDnsSuffix()
and resourceAwsEc2RegionalPublicDnsSuffix()
. That approach is more clumsy than adding fields like ec2_private_compute_domain
and ec2_public_compute_domain
to aws_region
. Thoughts?
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.
See #16638 for the DNS prefix
b07eb9c
to
c384457
Compare
Post adjust: GovCloud:
|
I believe this was covered by #16739 👍 |
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! |
Community Note
Relates #12995 Phase 2
Relates #14109
Release note for CHANGELOG:
Output from acceptance testing (GovCloud):
Output from acceptance testing (commercial):