[Bug]: aws_vpc_endpoint does not remove custom policy from resource if removed from Terraform config #40973
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/iam
Issues and PRs that pertain to the iam service.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
1.5.7
AWS Provider Version
5.84.0, 5.67.0
Affected Resource(s)
Expected Behavior
If the policy parameter is removed from the
aws_vpc_endpoint
resource, it should remove the custom policy from the endpoint and revert to the default policy. This is the behaviour when modifying the endpoint on the AWS web console.Actual Behavior
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws_vpc_endpoint
resource and replanaws_iam_policy_document
data source is entirely removed from configDebug Output
No response
Panic Output
No response
Important Factoids
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: