alicloud_api_gateway_instance

Provides a Api Gateway Instance resource.

For information about Api Gateway Instance and how to use it, see What is Instance.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}


resource "alicloud_api_gateway_instance" "default" {
  instance_name = var.name

  instance_spec = "api.s1.small"
  https_policy  = "HTTPS2_TLS1_0"
  zone_id       = "cn-hangzhou-MAZ6"
  payment_type  = "PayAsYouGo"
  user_vpc_id   = "1709116870"
  instance_type = "normal"
}

Argument Reference

The following arguments are supported:

When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

Api Gateway Instance can be imported using the id, e.g.

$ terraform import alicloud_api_gateway_instance.example <id>