awscc_ec2_network_acl (Resource)

Specifies a network ACL for your VPC.

Example Usage

Basic example

To create an EC2 Network ACL resource

resource "awscc_ec2_vpc" "main" {
  cidr_block = "10.0.0.0/16"
}

resource "awscc_ec2_network_acl" "main" {
  vpc_id = awscc_ec2_vpc.main.vpc_id
  tags = [
    {
      key   = "Name"
      value = "SampleNACL"
    },
    {
      key   = "Environment"
      value = "Development"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Schema

Required

Optional

Read-Only

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_ec2_network_acl.example <resource ID>