hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.64k stars 9.01k forks source link

resource/aws_servicequotas_service_quota: Request lifecycle causes drift to be detected #26949

Open gdavison opened 1 year ago

gdavison commented 1 year ago

Terraform Core Version

1.2.9

AWS Provider Version

4.31.0

Affected Resource(s)

Expected Behavior

As the Service Quota request goes through the lifecycle of PENDING to APPROVED and the request ID is set to empty, Drift Detection should not report drift.

Actual Behavior

Drift Detection reports drift, e.g.

~ aws_servicequotas_service_quota.example

    id:             "..."
  ~ request_id:     "abc123xyz890" -> ""
  ~ request_status: "PENDING" -> "APPROVED"

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

N/A

Steps to Reproduce

  1. Deploy a configuration containing an aws_servicequotas_service_quota using TFC with Drift Detection enabled
  2. Wait for the Service Quota request to be processed
  3. Log in to TFC
  4. Observe the "⚠️ Drifted" label on the workspace

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue