You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this lambda module with a simple vpc config and was updating from 7.16.0 -> 7.20.0 and got the following error
Error: deleting IAM Policy (arn:aws:iam::'my-account-id':policy/'my-lambda-name'-vpc): operation error IAM: DeletePolicy, https response error StatusCode: 409, RequestID: 'my-request-id', DeleteConflict: Cannot delete a policy attached to entities.
The only vpc settings I pass into the module are:
vpc_subnet_ids=var.vpc_subnet_ids// a list of my subnet IDs.vpc_security_group_ids=var.vpc_security_group_ids// a list of my security group IDs.
I found the following PR from the release notes that references that it could be considered a breaking change: "this change is breaking (in theory) since the new policies will be inline. But it is very unlikely that users did this." #615 (comment)
But I cannot find any information on remediation if you in fact did trigger the breaking change.
✋ I have searched the open/closed issues and my issue is not listed.
Versions
Module version [Required]: upgrading from 7.16.0 -> 7.20.0
Terraform version:
Terraform v1.9.8 on linux_arm64
Reproduction Code [Required]
Create a lambda with a vpc connection from vpc_subnet_ids and vpc_security_group_ids using module version 7.16.0
Update to module version 7.20.0
Run terraform apply
Expected behavior
Terraform apply runs successfully
Actual behavior
Terraform apply fails
Terminal Output Screenshot(s)
Error: deleting IAM Policy (arn:aws:iam::'my-account-id':policy/'my-lambda-name'-vpc): operation error IAM: DeletePolicy, https response error StatusCode: 409, RequestID: 'my-request-id', DeleteConflict: Cannot delete a policy attached to entities.
Additional context
Here is a sample of my module that I reuse in my own code:
Description
I am using this lambda module with a simple vpc config and was updating from 7.16.0 -> 7.20.0 and got the following error
Error: deleting IAM Policy (arn:aws:iam::'my-account-id':policy/'my-lambda-name'-vpc): operation error IAM: DeletePolicy, https response error StatusCode: 409, RequestID: 'my-request-id', DeleteConflict: Cannot delete a policy attached to entities.
The only vpc settings I pass into the module are:
I found the following PR from the release notes that references that it could be considered a breaking change: "this change is breaking (in theory) since the new policies will be inline. But it is very unlikely that users did this." #615 (comment)
But I cannot find any information on remediation if you in fact did trigger the breaking change.
Versions
Module version [Required]: upgrading from 7.16.0 -> 7.20.0
Terraform version:
Terraform v1.9.8 on linux_arm64
Reproduction Code [Required]
Expected behavior
Terraform apply runs successfully
Actual behavior
Terraform apply fails
Terminal Output Screenshot(s)
Error: deleting IAM Policy (arn:aws:iam::'my-account-id':policy/'my-lambda-name'-vpc): operation error IAM: DeletePolicy, https response error StatusCode: 409, RequestID: 'my-request-id', DeleteConflict: Cannot delete a policy attached to entities.
Additional context
Here is a sample of my module that I reuse in my own code:
Please let me know if there is anything else I can provide to help or if I missed something trying to do this upgrade, thanks!
The text was updated successfully, but these errors were encountered: