AWS Fundamentals Logo
AWS Fundamentals
AWS::WAFv2::WebACLAssociation

WAFv2 WebACLAssociation

Associates WebACL to Application Load Balancer, CloudFront or API Gateway.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
ResourceArn
string
RequiredCreate-only
WebACLArn
string
RequiredCreate-only

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::WAFv2::WebACLAssociation

Resources:
  MyResource:
    Type: AWS::WAFv2::WebACLAssociation
    Properties:
      ResourceArn: "arn:aws:service:region:account:resource"
      WebACLArn: "arn:aws:service:region:account:resource"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

wafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLwafv2:PutPermissionPolicywafv2:GetPermissionPolicyelasticloadbalancing:SetWebACLapigateway:SetWebACL

delete

wafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLwafv2:PutPermissionPolicyelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACL

read

wafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACLcognito-idp:AssociateWebACL

update

wafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACLcognito-idp:AssociateWebACL

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceWAFv2
Properties2
Required2
TaggingNot supported
Primary IDResourceArn

Supported Operations

CreateDeleteReadUpdate

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ResourceArnWebACLArn

External Links