A useful command to get the current executing region if you’re not sure, for example if AWS_REGION and AWS_DEFAULT_REGION are both set.
aws ec2 describe-availability-zones --output text --query 'AvailabilityZones[0].[RegionName]'
A useful command to get the current executing region if you’re not sure, for example if AWS_REGION and AWS_DEFAULT_REGION are both set.
aws ec2 describe-availability-zones --output text --query 'AvailabilityZones[0].[RegionName]'