Skip to content

Commit 5723635

Browse files
authored
Chore: [AEA-3831] - Tweaks lambdas execution policy export name (#71)
## Summary - Routine Change ### Details - Tweaks lambdas execution policy export name
1 parent dd2617a commit 5723635

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

SAMtemplates/lambda_resources.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Description: >
55
Resources for a lambda
66
77
Parameters:
8+
StackName:
9+
Type: String
10+
Description: The name of the main stack
811
CloudWatchKMSKey:
912
Type: String
1013
Description: Cloudwatch KMS key
@@ -125,7 +128,7 @@ Outputs:
125128
Description: Lambda execution policy arn
126129
Value: !GetAtt ExecuteLambdaManagedPolicy.PolicyArn
127130
Export:
128-
Name: !Join [":", [!Ref "AWS::StackName", "FHIRValidatorUKCoreExecuteLambdaPolicyArn"]]
131+
Name: !Sub ${StackName}:FHIRValidatorUKCoreExecuteLambdaPolicyArn
129132
LambdaRoleArn:
130133
Description: "LambdaRole ARN"
131134
Value: !GetAtt LambdaRole.Arn

SAMtemplates/main_template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Resources:
4444
Properties:
4545
Location: lambda_resources.yaml
4646
Parameters:
47+
StackName: !Ref AWS::StackName
4748
CloudWatchKMSKey: !ImportValue account-resources:CloudwatchLogsKmsKeyArn
4849
SplunkSubscriptionFilterRole: !ImportValue lambda-resources:SplunkSubscriptionFilterRole
4950
SplunkDeliveryStream: !ImportValue lambda-resources:SplunkDeliveryStream

0 commit comments

Comments
 (0)