-
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
fix: Return error when aws_cur_report_definition is not associated with us-east-1 region #36540
fix: Return error when aws_cur_report_definition is not associated with us-east-1 region #36540
Conversation
Community NoteVoting for Prioritization
For Submitters
|
…th us-east-1 region
b1b9e77
to
52bbcfc
Compare
…iated with us-east-1 region" This reverts commit 52bbcfc.
…rvice@v1.23.3 && go mod tidy'.
…only Region in which AWS Cost and Usage Reports is available.
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccCUR_serial' PKG=cur
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/cur/... -v -count 1 -parallel 20 -run=TestAccCUR_serial -timeout 360m
=== RUN TestAccCUR_serial
=== PAUSE TestAccCUR_serial
=== CONT TestAccCUR_serial
=== RUN TestAccCUR_serial/ReportDefinition
=== RUN TestAccCUR_serial/ReportDefinition/parquet
=== PAUSE TestAccCUR_serial/ReportDefinition/parquet
=== RUN TestAccCUR_serial/ReportDefinition/athena
=== PAUSE TestAccCUR_serial/ReportDefinition/athena
=== RUN TestAccCUR_serial/ReportDefinition/DataSource_basic
=== RUN TestAccCUR_serial/ReportDefinition/basic
=== PAUSE TestAccCUR_serial/ReportDefinition/basic
=== RUN TestAccCUR_serial/ReportDefinition/disappears
=== PAUSE TestAccCUR_serial/ReportDefinition/disappears
=== RUN TestAccCUR_serial/ReportDefinition/textOrCsv
=== PAUSE TestAccCUR_serial/ReportDefinition/textOrCsv
=== RUN TestAccCUR_serial/ReportDefinition/refresh
=== PAUSE TestAccCUR_serial/ReportDefinition/refresh
=== RUN TestAccCUR_serial/ReportDefinition/overwrite
=== PAUSE TestAccCUR_serial/ReportDefinition/overwrite
=== RUN TestAccCUR_serial/ReportDefinition/DataSource_additional
=== CONT TestAccCUR_serial/ReportDefinition/parquet
=== CONT TestAccCUR_serial/ReportDefinition/textOrCsv
=== CONT TestAccCUR_serial/ReportDefinition/disappears
=== CONT TestAccCUR_serial/ReportDefinition/basic
=== CONT TestAccCUR_serial/ReportDefinition/overwrite
=== CONT TestAccCUR_serial/ReportDefinition/refresh
=== CONT TestAccCUR_serial/ReportDefinition/athena
--- PASS: TestAccCUR_serial (133.22s)
--- PASS: TestAccCUR_serial/ReportDefinition (55.24s)
--- PASS: TestAccCUR_serial/ReportDefinition/DataSource_basic (28.29s)
--- PASS: TestAccCUR_serial/ReportDefinition/DataSource_additional (26.95s)
--- PASS: TestAccCUR_serial/ReportDefinition/disappears (55.39s)
--- PASS: TestAccCUR_serial/ReportDefinition/textOrCsv (60.66s)
--- PASS: TestAccCUR_serial/ReportDefinition/overwrite (61.19s)
--- PASS: TestAccCUR_serial/ReportDefinition/parquet (62.96s)
--- PASS: TestAccCUR_serial/ReportDefinition/athena (63.34s)
--- PASS: TestAccCUR_serial/ReportDefinition/refresh (63.46s)
--- PASS: TestAccCUR_serial/ReportDefinition/basic (77.98s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cur 144.256s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.43.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR is for adding a region check before each API operation and throw an error if the
aws_cur_report_definition
resource or data source is not associated withus-east-1
, which is the only region the CUR service endpoint supports.To maintainers: I need help to troubleshoot an issue with the
testAccReportDefinition_disappears
test case. It is constantly failing, and what I noticed in CloudTrail is that the test case is trying to delete the resource twice. The CUR API returns aValidationError
with no message in the 2nd delete, but I am fairly sure that it's because it is trying to delete an already-deleted resource. Please let me know how I can fix it if you have any ideas. Thanks.Relations
Closes #36446.
Closes #36133.
References
n/a
Output from Acceptance Testing