» alicloud_network_acl

Provides a network acl resource to add network acls.

» Example Usage

Basic Usage

resource "alicloud_vpc" "default" {
  cidr_block = ""
  name       = "VpcConfig"

resource "alicloud_network_acl" "default" {
  vpc_id      = "${alicloud_vpc.default.id}"
  name        = "network_acl"
  description = "network_acl"

» Argument Reference

The following arguments are supported:

  • vpc_id - (Required, ForceNew) The vpc_id of the network acl, the field can't be changed.
  • name - (Optional) The name of the network acl.
  • description - (Optional) The description of the network acl instance.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the network acl instance id.

» Import

The network acl can be imported using the id, e.g.

$ terraform import alicloud_network_acl.default nacl-abc123456