alicloud_amqp_static_account

Provides a Amqp Static Account resource.

For information about Amqp Static Account and how to use it, see What is Static Account.

Example Usage

Basic Usage

variable "access_key" {
  default = "access_key"
}
variable "secret_key" {
  default = "secret_key"
}
resource "alicloud_amqp_instance" "default" {
  instance_type  = "enterprise"
  max_tps        = 3000
  queue_capacity = 200
  storage_size   = 700
  support_eip    = false
  max_eip_tps    = 128
  payment_type   = "Subscription"
  period         = 1
}
resource "alicloud_amqp_static_account" "default" {
  instance_id = alicloud_amqp_instance.default.id
  access_key  = var.access_key
  secret_key  = var.secret_key
}

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

Amqp Static Account can be imported using the id, e.g.

$terraform import alicloud_amqp_static_account.example <instance_id>:<access_key>