alicloud_vpc_ipv4_gateway

Provides a Vpc Ipv4 Gateway resource.

For information about Vpc Ipv4 Gateway and how to use it, see What is Ipv4 Gateway.

Example Usage

Basic Usage

variable "name" {
  default = "tf-testacc-example"
}

resource "alicloud_resource_manager_resource_group" "default" {
  display_name        = "tf-testAcc-rg665"
  resource_group_name = var.name
}

resource "alicloud_resource_manager_resource_group" "modify" {
  display_name        = "tf-testAcc-rg298"
  resource_group_name = "${var.name}1"
}

resource "alicloud_vpc" "default" {
  vpc_name   = "${var.name}2"
  cidr_block = "10.0.0.0/8"
}


resource "alicloud_vpc_ipv4_gateway" "default" {
  ipv4_gateway_name        = var.name
  ipv4_gateway_description = "tf-testAcc-Ipv4Gateway"
  resource_group_id        = alicloud_resource_manager_resource_group.default.id
  vpc_id                   = alicloud_vpc.default.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Vpc Ipv4 Gateway can be imported using the id, e.g.

$ terraform import alicloud_vpc_ipv4_gateway.example <id>