-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format SAM Deploy Scripts, Remove Debugging (#98)
* Format SAM Deploy Scripts, Remove Debugging * Wrap quotes around s3:// path
- Loading branch information
Showing
6 changed files
with
60 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
#!/bin/bash | ||
|
||
accountId=$1 | ||
|
||
trustedAccountId=$2 | ||
|
||
region=$3 | ||
|
||
echo "Deploying example in region ${region} for NR account ${accountId} with trustedAccountId ${trustedAccountId}" | ||
|
||
sam build --use-container #--skip-pull-image | ||
sam build --use-container | ||
|
||
bucket="newrelic-example-${region}-${accountId}" | ||
|
||
aws s3 mb --region ${region} s3://${bucket} | ||
aws s3 mb --region "${region}" "s3://${bucket}" | ||
|
||
sam package --region "${region}" --s3-bucket "${bucket}" --output-template-file packaged.yaml | ||
|
||
sam package --region ${region} --s3-bucket=${bucket} --output-template-file packaged.yaml | ||
aws cloudformation deploy --region ${region} \ | ||
--template-file packaged.yaml \ | ||
--stack-name Newrelic-Dt-Example \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" "TrustedAccountId=${trustedAccountId}" | ||
sam deploy \ | ||
--region "${region}" \ | ||
--template-file packaged.yaml \ | ||
--stack-name Newrelic-Dt-Example \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" "TrustedAccountId=${trustedAccountId}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
#!/bin/bash | ||
|
||
accountId=$1 | ||
|
||
region=$2 | ||
|
||
echo "region set to ${region}" | ||
|
||
sam build --use-container | ||
|
||
bucket="newrelic-example-${region}-${accountId}" | ||
|
||
#aws s3 mb --region ${region} s3://${bucket} | ||
aws s3 mb --region "${region}" "s3://${bucket}" | ||
|
||
sam package --region "${region}" --s3-bucket "${bucket}" --output-template-file packaged.yaml | ||
|
||
sam package --region ${region} --s3-bucket ${bucket} --output-template-file packaged.yaml | ||
sam deploy --region ${region} \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExampleJava2 \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" | ||
sam deploy \ | ||
--region "${region}" \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExampleJava \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
#!/bin/bash | ||
|
||
accountId=$1 | ||
|
||
region=$2 | ||
|
||
echo "region set to ${region}" | ||
|
||
sam build --use-container | ||
|
||
bucket="newrelic-example-${region}-${accountId}" | ||
|
||
aws s3 mb --region ${region} s3://${bucket} | ||
aws s3 mb --region "${region}" "s3://${bucket}" | ||
|
||
sam package --region "${region}" --s3-bucket "${bucket}" --output-template-file packaged.yaml | ||
|
||
sam package --region ${region} --s3-bucket=${bucket} --output-template-file packaged.yaml | ||
aws cloudformation deploy --region ${region} \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExampleNode \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" | ||
sam deploy \ | ||
--region "${region}" \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExampleNode \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
#!/bin/bash | ||
|
||
accountId=$1 | ||
|
||
region=$2 | ||
|
||
echo "region set to ${region}" | ||
|
||
sam build --use-container | ||
|
||
bucket="newrelic-example-${region}-${accountId}" | ||
|
||
aws s3 mb --region ${region} s3://${bucket} | ||
aws s3 mb --region "${region}" "s3://${bucket}" | ||
|
||
sam package --region "${region}" --s3-bucket "${bucket}" --output-template-file packaged.yaml | ||
|
||
sam package --region ${region} --s3-bucket=${bucket} --output-template-file packaged.yaml | ||
aws cloudformation deploy --region ${region} \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExamplePython \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" | ||
sam deploy \ | ||
--region "${region}" \ | ||
--template-file packaged.yaml \ | ||
--stack-name NewrelicExamplePython \ | ||
--capabilities CAPABILITY_IAM \ | ||
--parameter-overrides "NRAccountId=${accountId}" |