1.7.5
5.86.0
Expected Behavior: Backup plan targets S3 buckets with the enable_backup = true tag.^1
Actual Behavior: Backup plan targets all S3 buckets AND all AWS resources with theenable_backup = true tag.
resource "aws_backup_selection" "backup_selection_usw2" {
provider = aws.usw2
name = "my-backup-plan"
plan_id = aws_backup_plan.s3_bucket_backup.id
iam_role_arn = data.aws_iam_role.backup_default_role.arn
resources = [
"arn:aws:s3:::*"
]
selection_tag {
key = "enable_backup"
value = "true"
type = "STRINGEQUALS"
}
}
No response
No response
No response
No response
None