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
AWS provider resource aws_iam_policy_attachment creates an exclusive relationship between the policy and roles defined. As this is almost never what you want, it is suggested to use aws_iam_role_policy_attachment to create an attachment between one policy and one role.
In context here, the policy AWSLambdaExecute policy is being attached to a set of roles created in the terraform module
Upon creating this resource, all roles that currently have policy AWSLambdaExecute attached will have that policy detached, resulting in resources that previously had permission to execute lambda functions no longer having that permission.
AWS provider resource
aws_iam_policy_attachment
creates an exclusive relationship between the policy and roles defined. As this is almost never what you want, it is suggested to useaws_iam_role_policy_attachment
to create an attachment between one policy and one role.In context here, the policy
AWSLambdaExecute
policy is being attached to a set of roles created in the terraform moduleUpon creating this resource, all roles that currently have policy
AWSLambdaExecute
attached will have that policy detached, resulting in resources that previously had permission to execute lambda functions no longer having that permission.See https://registry.terraform.io/providers/hashicorp/aws/2.70.1/docs/resources/iam_policy_attachment
The text was updated successfully, but these errors were encountered: