[Bug]: Can't use resources representing Backup Vaults created by AWS for automatic backups #28126
Labels
bug
Addresses a defect in current functionality.
service/backup
Issues and PRs that pertain to the backup service.
Terraform Core Version
1.3.5
AWS Provider Version
4.41.0
Affected Resource(s)
I suspect similar issues may affect other resources, e.g. and in particular aws_backup_plan — but I haven't tested that.
Expected Behavior
I should be able to import any existing Backup Vault into terraform state and use it as normal.
Actual Behavior
Some Backup Vaults created automatically by AWS have names which contain
/
characters (which are normally prohibited). E.g. when "automatic backups" are enabled on some EFS volume, AWS created a backup vault calledaws/efs/automatic-backup-vault
.The
aws_backup_vault
resource doesn't allow/
characters in their names (and again, that's normally the right thing to do because end users can't create such vaults). As such, while I can create a resource for that vault and import its state, I cannot thenplan
orapply
vs that resource without changing its name (which I suspect is not possible anyway for these automatically-created vaults, which also seem to be not deletable).Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws_efs_backup_policy
resource).aws/efs/automatic-backup-vault
has been created.aws_backup_vault
resource with that name.terraform plan
(this fails).Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: