Skip to content

Commit 2f596ec

Browse files
committed
Fixes and improvements to deploy scripts
1 parent 2db2e5a commit 2f596ec

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Diff for: bin/deploy.sh

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
ver=`cat package.json | grep "version" | cut -d: -f2 | sed -e "s/[\"\,]//g" | tr -d '[:space:]'`
55
token=AWSLambdaRedshiftLoader
66

7+
if [[ "$1" == "" ]] ; then
8+
echo "Please provide argument of 'binary', 'yaml', or 'all' to deploy to S3."
9+
exit -1
10+
fi
11+
12+
if [[ "$ver" == "" ]]; then
13+
echo "Please run deploy.sh from project root directory, as ./bin/deploy.sh <deploy type>"
14+
exit -1
15+
fi
16+
717
echo "Deploying Lambda Redshift Loader $ver to AWSLabs S3 Buckets"
818

919
for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do

Diff for: deploy-vpc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Resources:
119119
- Arn
120120
Code:
121121
S3Bucket: !Sub awslabs-code-${AWS::Region}
122-
S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.8.2.zip'
122+
S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.8.3.zip'
123123
Runtime: nodejs12.x
124124
VpcConfig:
125125
SecurityGroupIds:

Diff for: deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Resources:
9898
- Arn
9999
Code:
100100
S3Bucket: !Sub awslabs-code-${AWS::Region}
101-
S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.8.2.zip'
101+
S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.8.3.zip'
102102
Runtime: nodejs12.x
103103

104104

0 commit comments

Comments
 (0)