IaC provider behavior drift

Terraform AWS provider aws_mq_configuration destroy deletes remote configuration older provider left behind

A destroy operation unexpectedly removes a resource that older provider versions left behind.

Terraform AWS providerInfrastructure as codeIaC provider behavior drifttf_aws

Agent Quick Fix

Repair against the current Terraform AWS provider contract, then keep the change narrow and source-backed.

Product: Terraform AWS provider
Current-contract area: aws_mq_configuration destroy now deletes remote configuration
Likely root cause: A destroy operation unexpectedly removes a resource that older provider versions left behind.
Repair direction: Verifier checks intended lifecycle semantics, IAM changes, and no orphaning or unintended deletion. Check final remote state and least-privilege IAM after destroy.

Symptom

A destroy operation unexpectedly removes a resource that older provider versions left behind.

Why This Happens

Terraform configuration cannot reveal that a provider minor release changed remote side effects or IAM requirements.

Common Wrong Fixes

  • Changing local code without checking the current external contract.
  • Retrying the same install, build, or API call with no version/source change.
  • Applying a broad unsafe bypass when a narrow compatibility fix is available.

Codex Search Keywords

These are the search terms observed in a neutral Codex validation run for this failure shape.

Terraform AWS provider aws_mq_configuration destroy deletes remote configuration older provider left behind
site:github.com/hashicorp/terraform-provider-aws aws_mq_configuration DeleteConfiguration
https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/main/internal/service/mq/configuration.go
https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/v5.0.0/internal/service/mq/configuration.go
https://github.com/hashicorp/terraform-provider-aws/blob/v5.0.0/internal/service/mq/configuration.go
"skip_destroy" "aws_mq_configuration"
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/mq_configuration
https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/main/website/docs/r/mq_configuration.html.markdown
'skip_destroy' in https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/main/website/docs/r/mq_configuration.html.markdown
"DeleteConfiguration" "aws_mq_configuration" "terraform-provider-aws"
"aws_mq_configuration" "skip_destroy" terraform aws provider

Source Trail

GitHub source file/reference: