Skip to content

Commit 2f9f12f

Browse files
committed
lint sam templates
1 parent 801a7aa commit 2f9f12f

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ lint:
1212
poetry run flake8 scripts/*.py --config .flake8
1313
shellcheck scripts/*.sh
1414

15+
lint-samtemplates:
16+
poetry run cfn-lint -t SAMtemplates/*.yaml
17+
1518
test: download-dependencies
1619
mvn test
1720

SAMtemplates/main_template.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ Description: >
44
FHIR validator lambda
55
66
Parameters:
7-
VersionNumber:
8-
Type: String
9-
Description: Current release version
10-
Default: "xxx"
11-
CommitId:
12-
Type: String
13-
Description: Most recent commit hash
14-
Default: "xxx"
157
LogLevel:
168
Type: String
179
Description: The log level to set in the lambda
@@ -76,6 +68,10 @@ Resources:
7668
Runtime: java21
7769
Layers:
7870
- !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:38"
71+
Environment:
72+
Variables:
73+
AWS_LAMBDA_LOG_LEVEL: !Ref LogLevel
74+
POWERTOOLS_LOG_LEVEL: !Ref LogLevel
7975

8076
Outputs:
8177
FHIRValidatorLambdaName:

0 commit comments

Comments
 (0)