apprunner:AssociateWebAcl

Write

apprunner:AssociateWebAcl is a Write access-level action in the apprunner service. Grants permission to associate the service with an AWS WAF web ACL

Resource types

ARNs that apprunner:AssociateWebAcl can be scoped to in an IAM policy.

arn:${Partition}:apprunner:${Region}:${Account}:service/${ServiceName}/${ServiceId}
service
arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}
webacl

Condition keys

Keys you can use in the Condition block of a policy that grants apprunner:AssociateWebAcl.

aws:ResourceTag/${TagKey} String

Filters access by actions based on tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows apprunner:AssociateWebAcl. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowApprunnerAssociateWebAcl",
      "Effect": "Allow",
      "Action": "apprunner:AssociateWebAcl",
      "Resource": "*"
    }
  ]
}

Related actions in apprunner

View all apprunner actions →