diff --git a/bin/deploy-yaml.sh b/bin/deploy-yaml.sh deleted file mode 100755 index 4516c91..0000000 --- a/bin/deploy-yaml.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# publish deploy.yaml to regional buckets -for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy.yaml --acl public-read --region $r; done - -for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-vpc.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy-vpc.yaml --acl public-read --region $r; done - -for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do aws s3 cp deploy-admin-host.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy-admin-host.yaml --acl public-read --region $r; done diff --git a/bin/deploy.sh b/bin/deploy.sh index 498ef65..d30a777 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -4,6 +4,16 @@ ver=`cat package.json | grep "version" | cut -d: -f2 | sed -e "s/[\"\,]//g" | tr -d '[:space:]'` token=AWSLambdaRedshiftLoader +echo "Deploying Lambda Redshift Loader $ver to AWSLabs S3 Buckets" + for r in `aws ec2 describe-regions --query Regions[*].RegionName --output text`; do + # publish the build aws s3 cp dist/$token-$ver.zip s3://awslabs-code-$r/LambdaRedshiftLoader/$token-$ver.zip --acl public-read --region $r; + + # publish deploy.yaml to regional buckets + aws s3 cp deploy.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy.yaml --acl public-read --region $r; + + aws s3 cp deploy-vpc.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy-vpc.yaml --acl public-read --region $r; + + aws s3 cp deploy-admin-host.yaml s3://awslabs-code-$r/LambdaRedshiftLoader/deploy-admin-host.yaml --acl public-read --region $r; done diff --git a/deploy-vpc.yaml b/deploy-vpc.yaml index e89ef37..97562a7 100644 --- a/deploy-vpc.yaml +++ b/deploy-vpc.yaml @@ -119,7 +119,7 @@ Resources: - Arn Code: S3Bucket: !Sub awslabs-code-${AWS::Region} - S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.7.7 .zip' + S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.7.8.zip' Runtime: nodejs12.x VpcConfig: SecurityGroupIds: diff --git a/deploy.yaml b/deploy.yaml index a349e34..80863bc 100755 --- a/deploy.yaml +++ b/deploy.yaml @@ -98,7 +98,7 @@ Resources: - Arn Code: S3Bucket: !Sub awslabs-code-${AWS::Region} - S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.7.7.zip' + S3Key: 'LambdaRedshiftLoader/AWSLambdaRedshiftLoader-2.7.8.zip' Runtime: nodejs12.x \ No newline at end of file diff --git a/dist/AWSLambdaRedshiftLoader-2.7.8.zip b/dist/AWSLambdaRedshiftLoader-2.7.8.zip new file mode 100644 index 0000000..5f0c9b9 Binary files /dev/null and b/dist/AWSLambdaRedshiftLoader-2.7.8.zip differ diff --git a/package-lock.json b/package-lock.json index fc532d6..34f223e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aws-lambda-redshift-loader", - "version": "2.7.7 ", + "version": "2.7.8", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -290,9 +290,9 @@ "integrity": "sha1-ZMTwJfF/1Tv7RXY/rrFvAVp0dVA=" }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "version": "4.17.19", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", + "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" }, "logform": { "version": "2.1.2", @@ -486,7 +486,8 @@ "source-map": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "optional": true }, "split": { "version": "1.0.1", diff --git a/package.json b/package.json index 6319d97..37aa118 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "aws-lambda-redshift-loader", "description": "An Amazon Redshift Database Loader written for AWS Lambda", - "version": "2.7.7", + "version": "2.7.8", "homepage": "http://github.com/awslabs/aws-lambda-redshift-loader", "bugs": { "url": "http://github.com/awslabs/aws-lambda-redshift-loader/issues", @@ -17,7 +17,8 @@ "pgpass": "1.0.2", "regex": "^0.1.1", "uuid": "3.3.3", - "winston": "^3.2.1" + "winston": "^3.2.1", + "lodash": ">=4.17.19" }, "keywords": [ "amazon",