AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::SubnetNetworkAclAssociation

EC2 SubnetNetworkAclAssociation

Resource Type definition for AWS::EC2::SubnetNetworkAclAssociation

Properties

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

Filter:
PropertyTypeFlags
NetworkAclId
string
RequiredCreate-only
SubnetId
string
RequiredCreate-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AssociationIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SubnetNetworkAclAssociation

Resources:
  MyResource:
    Type: AWS::EC2::SubnetNetworkAclAssociation
    Properties:
      NetworkAclId: "my-networkaclid"
      SubnetId: "my-subnetid"

Required IAM Permissions

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

create

ec2:DescribeNetworkAclsec2:ReplaceNetworkAclAssociation

read

ec2:DescribeNetworkAcls

delete

ec2:DescribeNetworkAclsec2:ReplaceNetworkAclAssociation

list

ec2:DescribeNetworkAcls

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties3
Required2
TaggingNot supported
Primary IDAssociationId

Supported Operations

CreateReadDeleteList

Immutable After Creation

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

SubnetIdNetworkAclId

External Links