aws ec2 modify-availability-zone-group
Changes the opt-in status of the specified zone group for your account. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To enable a zone group
The following modify-availability-zone-group example enables the specified zone group.
aws ec2 modify-availability-zone-group --group-name us-west-2-lax-1 --opt-in-status opted-inIdentify--group-nameThe name of the Availability Zone group, Local Zone group, or Wavelength Zone group.--opt-in-statusIndicates whether to opt in to the zone group.Its output
{
"Return": true
}For more information, see Regions and Zones in the Amazon EC2 User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--group-nameThe name of the Availability Zone group, Local Zone group, or Wavelength Zone group.--opt-in-statusIndicates whether to opt in to the zone group.