Skip to content

Commit a0c9b83

Browse files
committed
Remove SAM dependency.
1 parent 976da6c commit a0c9b83

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#!/bin/bash
22

3-
BUCKET=$(jq -r '.Bucket' parameters.json)
43
VPC_ID=$(jq -r '.VpcId as $k | "VpcId=\($k)"' parameters.json)
54
SUBNET_ID=$(jq -r '.SubnetId as $k | "SubnetId=\($k)"' parameters.json)
65
PASSWORD=$(jq -r '.Password as $k | "Password=\($k)"' parameters.json)
76

8-
rm -rf .aws-sam
9-
sam build --template sam/template.yaml
10-
sam package --output-template-file .aws-sam/packaged.yaml --s3-bucket ${BUCKET}
11-
sam deploy --template-file .aws-sam/packaged.yaml --stack-name aws-data-wrangler-test-arena \
7+
aws cloudformation deploy \
8+
--template-file template.yaml \
9+
--stack-name aws-data-wrangler-test-arena \
1210
--capabilities CAPABILITY_IAM \
1311
--parameter-overrides ${VPC_ID} ${SUBNET_ID} ${PASSWORD}
14-
rm -rf .aws-sam

testing/parameters.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"Bucket": "BUCKET_NAME",
32
"VpcId": "VPC_ID",
43
"SubnetId": "SUBNET_ID",
54
"Password": "REDSHIFT_PASSWORD"
File renamed without changes.

0 commit comments

Comments
 (0)