Skip to content

Commit f79fb1b

Browse files
authored
Merge branch 'main' into dependabot/maven/software.amazon.lambda-powertools-logging-2.1.1
2 parents d303a59 + bb8b51b commit f79fb1b

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

.github/scripts/release_code.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,29 @@ LATEST_TRUSTSTORE_VERSION=$(aws s3api list-object-versions --bucket "${TRUSTSTOR
1414
export LATEST_TRUSTSTORE_VERSION
1515

1616
cd ../../ || exit
17-
make sam-deploy-package
17+
18+
REPO=eps-FHIR-validator-lambda
19+
CFN_DRIFT_DETECTION_GROUP="fhir-validator"
20+
if [[ "$STACK_NAME" =~ -pr-[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"

.github/workflows/sam_release_code.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2121
<fhir.version>7.6.1</fhir.version>
2222
<log4j.version>2.24.3</log4j.version>
23-
<fasterxml.version>2.19.1</fasterxml.version>
23+
<fasterxml.version>2.19.2</fasterxml.version>
2424
<sonar.organization>nhsdigital</sonar.organization>
2525
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2626
<sonar.projectKey>NHSDigital_eps-FHIR-validator-lambda</sonar.projectKey>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>org.junit</groupId>
3333
<artifactId>junit-bom</artifactId>
34-
<version>5.13.3</version>
34+
<version>5.13.4</version>
3535
<type>pom</type>
3636
<scope>import</scope>
3737
</dependency>
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>com.amazonaws</groupId>
8686
<artifactId>aws-lambda-java-events</artifactId>
87-
<version>3.16.0</version>
87+
<version>3.16.1</version>
8888
</dependency>
8989
<dependency>
9090
<groupId>com.amazonaws</groupId>

0 commit comments

Comments
 (0)