» Resource: aws_ec2_availability_zone_group

Manages an EC2 Availability Zone Group, such as updating its opt-in status.

» Example Usage

resource "aws_ec2_availability_zone_group" "example" {
  group_name    = "us-west-2-lax-1"
  opt_in_status = "opted-in"

» Argument Reference

The following arguments are required:

  • group_name - (Required) Name of the Availability Zone Group.
  • opt_in_status - (Required) Indicates whether to enable or disable Availability Zone Group. Valid values: opted-in or not-opted-in.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Name of the Availability Zone Group.

» Import

EC2 Availability Zone Groups can be imported using the group name, e.g.

$ terraform import aws_ec2_availability_zone_group.example us-west-2-lax-1