cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

AWS::WAFv2::WebACLAssociation [BUG]

Open philipakash opened this issue 6 years ago • 2 comments

1. AWS::WAFv2::WebACLAssociation

This cloud formation resource allows associating resources to Web ACL. Find details below on a scenario where it fails to create the association with permission errors.

2. Scope of request

Found a bug with deploying the WAF association resource in a specific scenario. Whenever the resource is deployed into a cloud formation stack without a role ARN, it works as expected but if deployed into a cloud formation stack with an IAM Role with all the required permissions, it fails with the below error:

State: CREATE_FAILED

User: arn:aws:sts::050190566102:assumed-role/samplerole/AWSCloudFormation is not authorized to perform: elasticloadbalancing:SetWebACL on resource: arn:aws:elasticloadbalancing:us-east-1:XXXXXXXXX:loadbalancer/app/webacltest/XXXXXXX (Service: Wafv2, Status Code: 400, Request ID: aaac1c22-f18f-47e9-aa45-6313c8b7da21)

Can someone please confirm the above by reproducing. I have reproduced this multiple times with other peers in my org.

philipakash avatar Feb 21 '20 17:02 philipakash

We are having the same problem.

AgentO3 avatar Feb 25 '20 19:02 AgentO3

This issue should've been fixed long ago as I'm not able to reproduce the error. Can you please confirm?

jerechenamz avatar Oct 04 '21 20:10 jerechenamz