-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ccaa7f
commit 1577f10
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Resource: ncloud_route_table_association | ||
|
||
Provide a resource to create association between route table and a subnet. | ||
|
||
## Example Usage | ||
|
||
### Basic Usage | ||
|
||
```hcl | ||
resource "ncloud_vpc" "vpc" { | ||
ipv4_cidr_block = "10.3.0.0/16" | ||
} | ||
resource "ncloud_subnet" "subnet" { | ||
vpc_no = ncloud_vpc.vpc.id | ||
subnet = "10.3.1.0/24" | ||
zone = "KR-2" | ||
network_acl_no = ncloud_vpc.vpc.default_network_acl_no | ||
subnet_type = "PUBLIC" | ||
} | ||
resource "ncloud_route_table" "route_table" { | ||
vpc_no = ncloud_vpc.vpc.id | ||
description = "for test" | ||
supported_subnet_type = "PUBLIC" | ||
} | ||
resource "ncloud_route_table_association" "route_table_subnet" { | ||
route_table_no = ncloud_route_table.route_table.id | ||
subnet_no = ncloud_subnet.subnet.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `route_table_no` - (Required) The ID of the Route Table. | ||
* `subnet_no` - (Required) The ID of Subnet to create association. | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The ID of the route table association (`route_table_no`:`subnet_no`) |