File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed
Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,29 @@ LATEST_TRUSTSTORE_VERSION=$(aws s3api list-object-versions --bucket "${TRUSTSTOR
1414export LATEST_TRUSTSTORE_VERSION
1515
1616cd ../../ || exit
17- make sam-deploy-package
17+
18+ REPO=eps-FHIR-validator-lambda
19+ CFN_DRIFT_DETECTION_GROUP=" fhir-validator"
20+ if [[ " $STACK_NAME " =~ -p r-[0-9]+$ ]]; then
21+ CFN_DRIFT_DETECTION_GROUP=" fhir-validator-pull-request"
22+ fi
23+
24+
25+ sam deploy \
26+ --template-file " $TEMPLATE_FILE " \
27+ --stack-name " $STACK_NAME " \
28+ --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
29+ --region eu-west-2 \
30+ --s3-bucket " $artifact_bucket " \
31+ --s3-prefix " $ARTIFACT_BUCKET_PREFIX " \
32+ --config-file samconfig_package_and_deploy.toml \
33+ --no-fail-on-empty-changeset \
34+ --role-arn " $cloud_formation_execution_role " \
35+ --no-confirm-changeset \
36+ --force-upload \
37+ --tags " version=$VERSION_NUMBER stack=$STACK_NAME repo=$REPO cfnDriftDetectionGroup=$CFN_DRIFT_DETECTION_GROUP " \
38+ --parameter-overrides \
39+ EnableSplunk=true \
40+ LogLevel=" $LOG_LEVEL " \
41+ LogRetentionDays=" $LOG_RETENTION_DAYS " \
42+ EnableAlerts=" $ENABLE_ALERTS "
Original file line number Diff line number Diff line change @@ -100,13 +100,13 @@ jobs:
100100 shell : bash
101101 working-directory : .github/scripts
102102 env :
103- artifact_bucket_prefix : fhir_validator/${{ inputs.ARTIFACT_BUCKET_PREFIX }}
103+ ARTIFACT_BUCKET_PREFIX : fhir_validator/${{ inputs.ARTIFACT_BUCKET_PREFIX }}
104104 COMMIT_ID : ${{ inputs.COMMIT_ID }}
105105 LOG_LEVEL : ${{ inputs.LOG_LEVEL }}
106106 LOG_RETENTION_DAYS : ${{ inputs.LOG_RETENTION_DAYS }}
107- stack_name : ${{ inputs.STACK_NAME }}
107+ STACK_NAME : ${{ inputs.STACK_NAME }}
108108 TARGET_ENVIRONMENT : ${{ inputs.TARGET_ENVIRONMENT }}
109- template_file : template.yaml
109+ TEMPLATE_FILE : template.yaml
110110 VERSION_NUMBER : ${{ inputs.VERSION_NUMBER }}
111111 ENABLE_ALERTS : ${{ inputs.ENABLE_ALERTS }}
112112 run : ./release_code.sh
You can’t perform that action at this time.
0 commit comments