Skip to content
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

provider: Fix reverse DNS prefix handling and save to AWSClient #17142

Merged
merged 2 commits into from
Feb 1, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Jan 15, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #17140

Release note for CHANGELOG:

* data-source/aws_partition: Correct `reverse_dns_prefix` value in AWS China, C2S, and SC2S

Output from acceptance testing:

--- PASS: TestAccAWSPartition_basic (8.02s)

--- PASS: TestAccAWSProvider_AssumeRole_Empty (18.41s)
--- PASS: TestAccAWSProvider_Endpoints (16.22s)
--- PASS: TestAccAWSProvider_IgnoreTags_EmptyConfigurationBlock (15.68s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_Multiple (15.57s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_None (15.56s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_One (15.84s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_Multiple (15.92s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_None (15.99s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_One (16.10s)
--- PASS: TestAccAWSProvider_Region_AwsC2S (13.71s)
--- PASS: TestAccAWSProvider_Region_AwsChina (13.27s)
--- PASS: TestAccAWSProvider_Region_AwsCommercial (12.85s)
--- PASS: TestAccAWSProvider_Region_AwsGovCloudUs (12.59s)
--- PASS: TestAccAWSProvider_Region_AwsSC2S (14.52s)

Reference: #17140

Output from acceptance testing:

```
--- PASS: TestAccAWSPartition_basic (8.02s)

--- PASS: TestAccAWSProvider_AssumeRole_Empty (18.41s)
--- PASS: TestAccAWSProvider_Endpoints (16.22s)
--- PASS: TestAccAWSProvider_IgnoreTags_EmptyConfigurationBlock (15.68s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_Multiple (15.57s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_None (15.56s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_One (15.84s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_Multiple (15.92s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_None (15.99s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_One (16.10s)
--- PASS: TestAccAWSProvider_Region_AwsC2S (13.71s)
--- PASS: TestAccAWSProvider_Region_AwsChina (13.27s)
--- PASS: TestAccAWSProvider_Region_AwsCommercial (12.85s)
--- PASS: TestAccAWSProvider_Region_AwsGovCloudUs (12.59s)
--- PASS: TestAccAWSProvider_Region_AwsSC2S (14.52s)
```
@bflad bflad added the bug Addresses a defect in current functionality. label Jan 15, 2021
@bflad bflad requested a review from a team as a code owner January 15, 2021 22:14
@ghost ghost added size/M Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jan 15, 2021
Base automatically changed from master to main January 23, 2021 01:00
@gdavison gdavison self-assigned this Jan 30, 2021
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

--- PASS: TestReverseDns (0.00s)
--- PASS: TestReverseDns/empty (0.00s)
--- PASS: TestReverseDns/amazonaws.com (0.00s)
--- PASS: TestReverseDns/amazonaws.com.cn (0.00s)
--- PASS: TestReverseDns/sc2s.sgov.gov (0.00s)
--- PASS: TestReverseDns/c2s.ic.gov (0.00s)
--- PASS: TestProvider_impl (0.22s)
--- PASS: TestProvider (0.91s)
--- PASS: TestAccAWSProvider_Region_AwsSC2S (31.17s)
--- PASS: TestAccAWSProvider_Region_AwsC2S (31.81s)
--- PASS: TestAccAWSProvider_Region_AwsChina (32.14s)
--- PASS: TestAccAWSProvider_Region_AwsGovCloudUs (32.35s)
--- PASS: TestAccAWSProvider_Region_AwsCommercial (33.17s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_None (37.52s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_Multiple (37.92s)
--- PASS: TestAccAWSProvider_IgnoreTags_EmptyConfigurationBlock (38.23s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_Multiple (38.33s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_One (38.70s)
--- PASS: TestAccAWSProvider_IgnoreTags_KeyPrefixes_One (38.42s)
--- PASS: TestAccAWSProvider_IgnoreTags_Keys_None (39.07s)
--- PASS: TestAccAWSProvider_Endpoints (38.85s)
--- PASS: TestAccAWSPartition_basic (39.43s)
--- PASS: TestAccAWSProvider_AssumeRole_Empty (40.25s)

@bflad bflad merged commit d1097aa into main Feb 1, 2021
@bflad bflad deleted the b-aws_partition-reverse_dns_prefix branch February 1, 2021 18:49
@github-actions github-actions bot added this to the v3.27.0 milestone Feb 1, 2021
github-actions bot pushed a commit that referenced this pull request Feb 1, 2021
@ghost
Copy link

ghost commented Feb 5, 2021

This has been released in version 3.27.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 4, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

data-source/aws_partition: reverse_dns_prefix attribute incorrect outside AWS Commercial and GovCloud (US)
2 participants