Skip to content

Commit e6b3ca9

Browse files
authored
Chore: [AEA-6055] - fix local sam make targets (#2735)
## Summary - 🤖 Operational or Infrastructure Change ### Details fix local sam make targets in the investigation of post-dated edge cases
1 parent ae17642 commit e6b3ca9

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

Makefile

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,66 @@ sam-sync: guard-AWS_DEFAULT_PROFILE guard-stack_name compile
3131
--stack-name $$stack_name \
3232
--watch \
3333
--template-file SAMtemplates/main_template.yaml \
34+
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
3435
--parameter-overrides \
36+
TruststoreVersion=$${TRUSTSTORE_VERSION:-none} \
37+
EnableMutualTLS=$${ENABLE_MUTUAL_TLS:-false} \
3538
EnableSplunk=false \
39+
EnableDynamoDBAutoScaling=$${DYNAMODB_AUTOSCALE:-true} \
40+
VersionNumber=$${VERSION_NUMBER:-dev} \
41+
CommitId=$${COMMIT_ID:-local} \
42+
LogLevel=$${LOG_LEVEL:-INFO} \
43+
LogRetentionInDays=$${LOG_RETENTION_DAYS:-30} \
3644
DeployCheckPrescriptionStatusUpdate=true \
37-
EnableAlerts=false
45+
EnableAlerts=false \
46+
Environment=$$AWS_ENVIRONMENT \
47+
StateMachineLogLevel=$${STATE_MACHINE_LOG_LEVEL:-ALL} \
48+
RequireApplicationName=$${REQUIRE_APPLICATION_NAME:-false} \
49+
ForwardCsocLogs=$${FORWARD_CSOC_LOGS:-false} \
50+
TestPresciptionsParamValue1=$${TEST_PRESCRIPTIONS_1:-PLACEHOLDER} \
51+
TestPresciptionsParamValue2=$${TEST_PRESCRIPTIONS_2:-PLACEHOLDER} \
52+
TestPresciptionsParamValue3=$${TEST_PRESCRIPTIONS_3:-PLACEHOLDER} \
53+
TestPresciptionsParamValue4=$${TEST_PRESCRIPTIONS_4:-PLACEHOLDER} \
54+
"EnabledSystemsValue=$${ENABLED_SYSTEMS:-Internal Test System}" \
55+
"EnabledSiteODSCodesValue=$${ENABLED_SITE_ODS_CODES:-A83008,FA565}" \
56+
BlockedSiteODSCodesValue=$${BLOCKED_SITE_ODS_CODES:-XXXXX} \
57+
NotifyRoutingPlanIDValue=$${NOTIFY_ROUTING_PLAN_ID:-e57fe5cc-0567-4854-abe2-b7dd9014a50c} \
58+
NotifyAPIBaseURLValue=$${NOTIFY_API_BASE_URL:-https://int.api.service.nhs.uk} \
59+
EnableNotificationsInternal=$${ENABLE_NOTIFICATIONS_INTERNAL:-true} \
60+
EnableNotificationsExternal=$${ENABLE_NOTIFICATIONS_EXTERNAL:-false} \
61+
EnableBackup=$${ENABLE_BACKUP:-False}
3862

3963
sam-deploy: guard-AWS_DEFAULT_PROFILE guard-stack_name
4064
sam deploy \
4165
--stack-name $$stack_name \
66+
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
4267
--parameter-overrides \
68+
TruststoreVersion=$${TRUSTSTORE_VERSION:-none} \
69+
EnableMutualTLS=$${ENABLE_MUTUAL_TLS:-false} \
4370
EnableSplunk=false \
71+
EnableDynamoDBAutoScaling=$${DYNAMODB_AUTOSCALE:-true} \
72+
VersionNumber=$${VERSION_NUMBER:-dev} \
73+
CommitId=$${COMMIT_ID:-local} \
74+
LogLevel=$${LOG_LEVEL:-INFO} \
75+
LogRetentionInDays=$${LOG_RETENTION_DAYS:-30} \
4476
DeployCheckPrescriptionStatusUpdate=true \
45-
EnableAlerts=false
77+
EnableAlerts=false \
78+
Environment=$$AWS_ENVIRONMENT \
79+
StateMachineLogLevel=$${STATE_MACHINE_LOG_LEVEL:-ALL} \
80+
RequireApplicationName=$${REQUIRE_APPLICATION_NAME:-false} \
81+
ForwardCsocLogs=$${FORWARD_CSOC_LOGS:-false} \
82+
TestPresciptionsParamValue1=$${TEST_PRESCRIPTIONS_1:-PLACEHOLDER} \
83+
TestPresciptionsParamValue2=$${TEST_PRESCRIPTIONS_2:-PLACEHOLDER} \
84+
TestPresciptionsParamValue3=$${TEST_PRESCRIPTIONS_3:-PLACEHOLDER} \
85+
TestPresciptionsParamValue4=$${TEST_PRESCRIPTIONS_4:-PLACEHOLDER} \
86+
"EnabledSystemsValue=$${ENABLED_SYSTEMS:-Internal Test System}" \
87+
"EnabledSiteODSCodesValue=$${ENABLED_SITE_ODS_CODES:-A83008,FA565}" \
88+
BlockedSiteODSCodesValue=$${BLOCKED_SITE_ODS_CODES:-XXXXX} \
89+
NotifyRoutingPlanIDValue=$${NOTIFY_ROUTING_PLAN_ID:-e57fe5cc-0567-4854-abe2-b7dd9014a50c} \
90+
NotifyAPIBaseURLValue=$${NOTIFY_API_BASE_URL:-https://int.api.service.nhs.uk} \
91+
EnableNotificationsInternal=$${ENABLE_NOTIFICATIONS_INTERNAL:-true} \
92+
EnableNotificationsExternal=$${ENABLE_NOTIFICATIONS_EXTERNAL:-false} \
93+
EnableBackup=$${ENABLE_BACKUP:-False}
4694

4795
sam-delete: guard-AWS_DEFAULT_PROFILE guard-stack_name
4896
sam delete --stack-name $$stack_name

SAMtemplates/main_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ Parameters:
8888

8989
StateMachineLogLevel:
9090
Type: String
91+
AllowedValues: # OFF is not valid for state machine type EXPRESS
92+
- ALL
93+
- ERROR
94+
- FATAL
9195

9296
EnableBackup:
9397
Type: String

0 commit comments

Comments
 (0)