install-aws-server: Configurable availability zone.

This commit is contained in:
Alex Vandiver 2022-01-12 21:26:15 +00:00 committed by Tim Abbott
parent 8e89097dc1
commit f52ee561ae
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ AMI_ID=$(lookup image_id)
INSTANCE_TYPE=$(lookup instance_type)
IAM_PROFILE=$(lookup iam_profile)
SSH_SECRET_ID=$(lookup ssh_secret_id)
AZ=$(lookup availability_zone)
# Verify it doesn't exist already
ZONE_NAME=$($AWS route53 get-hosted-zone --id "$AWS_ZONE_ID" | jq -r '.HostedZone.Name')
@ -76,6 +77,7 @@ EXTRA_ARGS+=(
--instance-type "$INSTANCE_TYPE"
--security-group-ids $SECURITY_GROUPS
--monitoring Enabled=true
--placement "AvailabilityZone=$AZ"
)
# Build up the provisioning script