install-aws-server: Fix SC2206 violation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-09-24 18:45:14 -07:00 committed by Tim Abbott
parent 0cc6421118
commit 5a978edf40
1 changed files with 2 additions and 2 deletions

View File

@ -104,6 +104,7 @@ function lookup() {
AWS_ZONE_ID=$(lookup zone_id) AWS_ZONE_ID=$(lookup zone_id)
SECURITY_GROUPS=$(lookup security_groups) SECURITY_GROUPS=$(lookup security_groups)
read -r -a SECURITY_GROUPS <<<"$SECURITY_GROUPS"
INSTANCE_TYPE=$(lookup instance_type) INSTANCE_TYPE=$(lookup instance_type)
IAM_PROFILE=$(lookup iam_profile) IAM_PROFILE=$(lookup iam_profile)
AZ=$(lookup availability_zone) AZ=$(lookup availability_zone)
@ -128,12 +129,11 @@ if [ "$EXISTING_RECORDS" != "0" ]; then
fi fi
# https://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html # https://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html
# shellcheck disable=SC2206 # We intentionally split $SECURITY_GROUPS
EXTRA_ARGS+=( EXTRA_ARGS+=(
--iam-instance-profile "Name=\"$IAM_PROFILE\"" --iam-instance-profile "Name=\"$IAM_PROFILE\""
--image-id "$AMI_ID" --image-id "$AMI_ID"
--instance-type "$INSTANCE_TYPE" --instance-type "$INSTANCE_TYPE"
--security-group-ids $SECURITY_GROUPS --security-group-ids "${SECURITY_GROUPS[@]}"
--monitoring Enabled=true --monitoring Enabled=true
--placement "AvailabilityZone=$AZ" --placement "AvailabilityZone=$AZ"
--block-device-mappings "DeviceName=/dev/sda1,Ebs={VolumeSize=$DISK_SIZE,VolumeType=gp3,Throughput=125,Iops=3000,Encrypted=true}" --block-device-mappings "DeviceName=/dev/sda1,Ebs={VolumeSize=$DISK_SIZE,VolumeType=gp3,Throughput=125,Iops=3000,Encrypted=true}"