-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
tests/resource/aws_default_security_group: Remove hardcoded us-east-1 handling #16026
tests/resource/aws_default_security_group: Remove hardcoded us-east-1 handling #16026
Conversation
… handling Reference: #8316 Reference: #15737 Reference: #15791 Previously in AWS GovCloud (US): ``` === RUN TestAccAWSDefaultSecurityGroup_Classic_basic TestAccAWSDefaultSecurityGroup_Classic_basic: provider_test.go:196: [{0 error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid. status code: 403, request id: fc6cf64f-8c40-4e8b-a37c-a82d8c6a69c9 []}] --- FAIL: TestAccAWSDefaultSecurityGroup_Classic_basic (0.40s) ``` Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSDefaultSecurityGroup_Classic_basic (16.47s) --- SKIP: TestAccAWSDefaultSecurityGroup_Classic_empty (0.00s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- SKIP: TestAccAWSDefaultSecurityGroup_Classic_basic (2.90s) --- SKIP: TestAccAWSDefaultSecurityGroup_Classic_empty (0.00s) ```
Going to investigate this failure more: Commercial:
|
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.
TestAccAWSDefaultSecurityGroup_Vpc_basic
is consistently failing. It looks like it wasn't directly changed but is expecting us-east-1
.
Attribute 'arn' expected "arn:aws:ec2:us-east-1:187416307283:security-group/sg-08749b1cfe35c9563",
got "arn:aws:ec2:us-west-2:187416307283:security-group/sg-08749b1cfe35c9563"
…cking is separate from regular ARN checking
The new commit should fix that issue -- both the regular region test and EC2-Classic region test were using the ARN checking function. 🤦 Please note that this resource testing needs to be run with no parallelism locally until #16018 is reviewed and merged. Output from acceptance testing in AWS Commercial:
Output from acceptance testing in AWS 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.
Looking great! 💯
GovCloud:
--- PASS: TestAccAWSDefaultSecurityGroup_Vpc_basic (55.09s)
--- SKIP: TestAccAWSDefaultSecurityGroup_Classic_basic (2.79s)
--- SKIP: TestAccAWSDefaultSecurityGroup_Classic_empty (0.00s)
Commercial:
--- PASS: TestAccAWSDefaultSecurityGroup_Vpc_basic (47.26s)
--- SKIP: TestAccAWSDefaultSecurityGroup_Classic_empty (0.00s)
--- PASS: TestAccAWSDefaultSecurityGroup_Classic_basic (12.43s)
This has been released in version 3.15.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! |
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
Reference: #8316
Reference: #15737
Reference: #15791
Release note for CHANGELOG:
Previously in AWS GovCloud (US):
Output from acceptance testing in AWS Commercial:
Output from acceptance testing in AWS GovCloud (US):