Skip to content

Commit 472df17

Browse files
kakakakakkuparikhudit
authored andcommitted
apigw-lambda-sfn-transcribe-translate-polly-sam: Use !Sub for APIG_ENDPOINT based on review feedback
1 parent 984f042 commit 472df17

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,7 @@ Resources:
120120
Environment:
121121
Variables:
122122
APIG_ENDPOINT:
123-
!Join [
124-
"",
125-
[
126-
!Ref CapstoneWebSocketApi,
127-
".execute-api.",
128-
!Ref "AWS::Region",
129-
".${AWS::URLSuffix}/dev",
130-
],
131-
]
123+
!Sub "${CapstoneWebSocketApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/dev"
132124
statemachine_arn: !Ref Orchestrator
133125
AuthorizerLambda:
134126
Type: AWS::Lambda::Function

0 commit comments

Comments
 (0)