-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vkcs_dc_conntrack_helper and vkcs_dc_ip_port_forwarding resources
- Loading branch information
Showing
80 changed files
with
1,641 additions
and
188 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
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
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
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
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,58 @@ | ||
--- | ||
subcategory: "Direct Connect" | ||
layout: "vkcs" | ||
page_title: "vkcs: vkcs_dc_conntrack_helper" | ||
description: |- | ||
Manages a direct connect conntrack helper resource within VKCS. | ||
--- | ||
|
||
# vkcs_dc_conntrack_helper | ||
|
||
Manages a direct connect conntrack helper resource. | ||
|
||
~> **Note:** This resource requires Sprut SDN to be enabled in your project. | ||
|
||
## Example Usage | ||
```terraform | ||
resource "vkcs_dc_conntrack_helper" "dc-conntrack-helper" { | ||
dc_router_id = vkcs_dc_router.dc_router.id | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
helper = "ftp" | ||
protocol = "tcp" | ||
port = 21 | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
- `dc_router_id` **required** *string* → Direct Connect Router ID. Changing this creates a new resource | ||
|
||
- `helper` **required** *string* → Helper type. Must be one of: "ftp". | ||
|
||
- `port` **required** *number* → Network port for conntrack target rule. | ||
|
||
- `protocol` **required** *string* → Protocol. Must be one of: "tcp". | ||
|
||
- `description` optional *string* → Description of the conntrack helper | ||
|
||
- `name` optional *string* → Name of the conntrack helper | ||
|
||
- `region` optional *string* → The `region` to fetch availability zones from, defaults to the provider's `region`. | ||
|
||
|
||
## Attributes Reference | ||
In addition to all arguments above, the following attributes are exported: | ||
- `created_at` *string* → Creation timestamp | ||
|
||
- `id` *string* → ID of the resource | ||
|
||
- `updated_at` *string* → Update timestamp | ||
|
||
|
||
|
||
## Import | ||
|
||
Direct connect conntrack helper can be imported using the `id`, e.g. | ||
```shell | ||
terraform import vkcs_dc_conntrack_helper.mydcconntrackhelper 52a0a638-0a75-4a15-b3f3-d5c9f953e93f | ||
``` |
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
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,63 @@ | ||
--- | ||
subcategory: "Direct Connect" | ||
layout: "vkcs" | ||
page_title: "vkcs: vkcs_dc_ip_port_forwarding" | ||
description: |- | ||
Manages a direct connect IP port forwarding resource within VKCS. | ||
--- | ||
|
||
# vkcs_dc_ip_port_forwarding | ||
|
||
Manages a direct connect ip port forwarding resource. | ||
|
||
~> **Note:** This resource requires Sprut SDN to be enabled in your project. | ||
|
||
## Example Usage | ||
```terraform | ||
resource "vkcs_dc_ip_port_forwarding" "dc-ip-port-forwarding" { | ||
dc_interface_id = vkcs_dc_interface.dc_interface.id | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
protocol = "udp" | ||
to_destination = "172.17.20.30" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
- `dc_interface_id` **required** *string* → Direct Connect Interface ID. Changing this creates a new resource | ||
|
||
- `protocol` **required** *string* → Protocol. Must be one of: "tcp", "udp", "any". | ||
|
||
- `to_destination` **required** *string* → IP Address of forwarding's destination. | ||
|
||
- `description` optional *string* → Description of the conntrack helper | ||
|
||
- `destination` optional *string* → Destination address selector. | ||
|
||
- `name` optional *string* → Name of the conntrack helper | ||
|
||
- `port` optional *number* → Port selector. | ||
|
||
- `region` optional *string* → The `region` to fetch availability zones from, defaults to the provider's `region`. | ||
|
||
- `source` optional *string* → Source address selector. | ||
|
||
- `to_port` optional *number* → Destination port selector. | ||
|
||
|
||
## Attributes Reference | ||
In addition to all arguments above, the following attributes are exported: | ||
- `created_at` *string* → Creation timestamp | ||
|
||
- `id` *string* → ID of the resource | ||
|
||
- `updated_at` *string* → Update timestamp | ||
|
||
|
||
|
||
## Import | ||
|
||
Direct connect IP port forwarding can be imported using the `id`, e.g. | ||
```shell | ||
terraform import vkcs_dc_ip_port_forwarding.mydcipportforwarding 659be09e-a10e-4762-b729-7a003af40f29 | ||
``` |
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
resource "vkcs_dc_router" "dc_router" { | ||
availability_zone = "GZ1" | ||
flavor = "standard" | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
flavor = "standard" | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
resource "vkcs_dc_bgp_instance" "dc_bgp_instance" { | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
dc_router_id = vkcs_dc_router.dc_router.id | ||
bgp_router_id = "192.168.1.2" | ||
asn = 12345 | ||
ecmp_enabled = true | ||
graceful_restart = true | ||
name = "tf-example" | ||
description = "tf-example-description" | ||
dc_router_id = vkcs_dc_router.dc_router.id | ||
bgp_router_id = "192.168.1.2" | ||
asn = 12345 | ||
ecmp_enabled = true | ||
graceful_restart = true | ||
} |
Oops, something went wrong.