File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
sdlf-utils/workshop-examples/legislators Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2626fi
2727REGION=$( aws configure get region --profile " $PROFILE " )
2828
29- ARTIFACTS_BUCKET=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name /sdlf/storage/rArtifactsBucket/dev --query " Parameter.Value" --output text)
29+ ARTIFACTS_BUCKET=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name " /sdlf/storage/rArtifactsBucket/dev" --query " Parameter.Value" --output text)
3030aws s3 cp " $DIRNAME /scripts/legislators-glue-job.py" " s3://$ARTIFACTS_BUCKET /artifacts/" --profile " $PROFILE "
3131
3232mkdir " $DIRNAME " /output
@@ -35,8 +35,8 @@ function send_legislators()
3535{
3636 ORIGIN=" $DIRNAME /data/"
3737
38- RAW_BUCKET=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name /sdlf/storage/rRawBucket/dev --query " Parameter.Value" --output text)
39- KMS_KEY=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name /sdlf/dataset/rKMSDataKey/dev --query " Parameter.Value" --output text)
38+ RAW_BUCKET=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name " /sdlf/storage/rRawBucket/dev" --query " Parameter.Value" --output text)
39+ KMS_KEY=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name " /sdlf/dataset/rKMSDataKey/dev" --query " Parameter.Value" --output text)
4040
4141 S3_DESTINATION=s3://$RAW_BUCKET /
4242 COUNT=0
@@ -48,6 +48,12 @@ function send_legislators()
4848 done
4949}
5050
51+ VPC_SUPPORT=$( aws --region " $REGION " --profile " $PROFILE " ssm get-parameter --name " /SDLF/VPC/Enabled" --query " Parameter.Value" --output text 2> /dev/null)
52+ if [ -z " $VPC_SUPPORT " ]
53+ then
54+ aws --region " $REGION " --profile " $PROFILE " ssm put-parameter --name " /SDLF/VPC/Enabled" --value " false" --type String
55+ fi
56+
5157aws cloudformation package --template-file " $DIRNAME " /scripts/legislators-glue-job.yaml \
5258 --s3-bucket " $ARTIFACTS_BUCKET " \
5359 --profile " $PROFILE " \
You can’t perform that action at this time.
0 commit comments