Skip to content

Commit 8b254ba

Browse files
committed
Set stack name on env var for all lambda
Signed-off-by: Connor Avery <[email protected]>
1 parent 900215b commit 8b254ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SAMtemplates/main_template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ Resources:
148148
Type: AWS::Serverless::Application
149149
Properties:
150150
Location: functions/main.yaml
151+
Environment:
152+
Variables:
153+
STACK_NAME: !Ref StackName
151154
Parameters:
152155
StackName: !Ref AWS::StackName
153156
Env: !Ref Env

0 commit comments

Comments
 (0)