aws_dms_replication_subnet_group resource created even after sanity check from API throwing an error #21790
Labels
bug
Addresses a defect in current functionality.
service/dms
Issues and PRs that pertain to the dms service.
When you try to create a
aws_dms_replication_subnet_group
with it'sreplication_subnet_group_id
accidentally containing underscores. The plan does not throw any error. And it will actually create your resource in AWS.Yet the API throws an error.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
Failing with the error and not creating the AWS resource
Actual Behavior
And yet the resource is created, therefor ended up in the state. Basically breaking your state & aws console :)
Steps to Reproduce
Apply the code above :)
terraform apply
Recovery notes
To recover:
terraform state rm aws_dms_replication_subnet_group.test
And delete the resource in the AWS console from the subnet group overview.
Credit goes to @devopsz21 for finding this issue.
Edit: AWS Support ticket is raised too
The text was updated successfully, but these errors were encountered: