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

tests/Backup: Failures "Backup Framework: AlreadyExistsException: : Controls in framework ... already exist." #23382

Closed
ewbankkit opened this issue Feb 25, 2022 · 3 comments · Fixed by #23385
Labels
service/backup Issues and PRs that pertain to the backup service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Feb 25, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

In nightly CI the Backup Framework acceptance tests are all failing with errors like:

=== RUN   TestAccBackupFramework_updateTags
=== PAUSE TestAccBackupFramework_updateTags
=== CONT  TestAccBackupFramework_updateTags
framework_test.go:85: Step 1/5 error: Error running apply: exit status 1
Error: error creating Backup Framework: AlreadyExistsException: Controls in framework tf_acc_test_q4nwp8c from account 123456789012 already exist.
{
RespMetadata: {
StatusCode: 400,
RequestID: "f1255d8f-1897-4a07-b0b6-ab37c923c790"
},
Message_: "Controls in framework tf_acc_test_q4nwp8c from account 123456789012 already exist."
}
with aws_backup_framework.test,
on terraform_plugin_test.tf line 2, in resource "aws_backup_framework" "test":
2: resource "aws_backup_framework" "test" {
--- FAIL: TestAccBackupFramework_updateTags (39.93s)

Relates #23193.
Relates #23175.

@github-actions github-actions bot added the service/backup Issues and PRs that pertain to the backup service. label Feb 25, 2022
@ewbankkit ewbankkit added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Feb 25, 2022
@ewbankkit
Copy link
Contributor Author

From the AWS documentation:

You cannot deploy duplicate frameworks (frameworks that contain the same controls and parameters).

Serializing the tests may well work.

@github-actions
Copy link

github-actions bot commented Mar 1, 2022

This functionality has been released in v4.3.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!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/backup Issues and PRs that pertain to the backup service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant