Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion aws_streams/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ fi
# Use datadog-cloudformation-stream-template as the s3 template for production
cp streams_main.yaml streams_main.yaml.bak
perl -pi -e "s/<BUCKET_PLACEHOLDER>/${BUCKET}/g" streams_main.yaml
if [ "$GOV" = true ]; then
# streams_main.yaml references the nested streams_single_region.yaml via a
# path-style https://s3.amazonaws.com/<bucket>/... URL. GovCloud CloudFormation
# cannot reach the commercial S3 endpoint, so rewrite it to the GovCloud region.
perl -pi -e 's|https://s3\.amazonaws\.com/|https://s3.us-gov-west-1.amazonaws.com/|g' streams_main.yaml
fi
trap 'mv streams_main.yaml.bak streams_main.yaml' EXIT

# Upload
Expand All @@ -74,6 +80,10 @@ else
aws s3 cp . s3://${BUCKET}/aws --recursive --exclude "*" --include "*.yaml"
fi
echo "Done uploading the template, and here is the CloudFormation quick launch URL"
echo "https://console.aws.amazon.com/cloudformation/home#/stacks/create/review?stackName=datadog-aws-streams&templateURL=https://${BUCKET}.s3.amazonaws.com/aws/streams_main.yaml"
if [ "$GOV" = true ]; then
echo "https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/create/review?stackName=datadog-aws-streams&templateURL=https://${BUCKET}.s3.us-gov-west-1.amazonaws.com/aws/streams_main.yaml"
else
echo "https://console.aws.amazon.com/cloudformation/home#/stacks/create/review?stackName=datadog-aws-streams&templateURL=https://${BUCKET}.s3.amazonaws.com/aws/streams_main.yaml"
fi

echo "Done!"
2 changes: 1 addition & 1 deletion aws_streams/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.2
v1.1.3
Loading