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

[Bug]: Deleted AWS Backup Vault Lock configurations aren't recreated #28325

Open
andy-careplanner opened this issue Dec 13, 2022 · 2 comments
Open
Labels
bug Addresses a defect in current functionality. service/backup Issues and PRs that pertain to the backup service.

Comments

@andy-careplanner
Copy link

Terraform Core Version

1.3.6

AWS Provider Version

4.40.0, 4.46.0

Affected Resource(s)

aws_backup_vault_lock_configuration

Expected Behavior

Terraform should recreate an AWS Vault Lock if it has been deleted but still exists in the configuration.

Actual Behavior

Terraform does not detect that the Vault Lock has been deleted.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_backup_vault" "foo" {
  name        = "foo"
}

resource "aws_backup_vault_lock_configuration" "foo" {
  backup_vault_name   = aws_backup_vault.foo.id
}

Steps to Reproduce

  1. Apply the example configuration so that the 'foo' AWS Backup Vault and Vault Lock are created
  2. In the AWS console delete the Vault Lock
  3. Run a plan/apply of the example configuration, no changes are detected

Note that deleting the Vault Lock AND the Vault then running a plan causes Terraform to propose recreating both of them. But if you just delete the Vault Lock, Terraform doesn't notice.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@andy-careplanner andy-careplanner added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Dec 13, 2022
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/backup Issues and PRs that pertain to the backup service. label Dec 13, 2022
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Dec 13, 2022
@smittnacht
Copy link
Contributor

Able to reproduce this with v5.37.0 of terraform-provider-aws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/backup Issues and PRs that pertain to the backup service.
Projects
None yet
Development

No branches or pull requests

3 participants