Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

aws: Shorten the tag names.

Alex Vandiver2a247391ab78
diff --git a/tools/setup/install-aws-server b/tools/setup/install-aws-server
index e7c693e1cbc..91f388af06b 100755
--- a/tools/setup/install-aws-server
+++ b/tools/setup/install-aws-server
@@ -74,7 +74,8 @@ BOOTDATA=$(mktemp)
sed '/^AWS=/ r ./bootstrap-awscli' bootstrap-aws-installer
} >>"$BOOTDATA"
-TAGS="[{Key=Name,Value=$SERVER},{Key=role,Value=\"$ROLES\"}]"
+TAG_ROLE_NAMES=$(echo "$ROLES" | perl -pe 's/\w+::profile::(\w+)/$1/g')
+TAGS="[{Key=Name,Value=$SERVER},{Key=role,Value=\"$TAG_ROLE_NAMES\"}]"
INSTANCE_DATA=$($AWS ec2 run-instances \
--iam-instance-profile 'Name="EC2ProdInstance"' \
--image-id "$AMI_ID" \