Skip to content

Commit

Permalink
Cleanup templates
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 21, 2023
1 parent c07913d commit c865364
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Resources:

PromptCreator:
Type: AWS::Serverless::Function
DependsOn: PromptCreatorLogGroup
Properties:
FunctionName: !Sub ${AWS::StackName}-PromptCreator
Description: Creates Static prompts to be used in Chime Voice SDK
Expand All @@ -136,7 +137,7 @@ Resources:
UpdateReplacePolicy: Retain
DeletionPolicy: RetainExceptOnCreate
Properties:
LogGroupName: !Sub '/aws/lambda/${PromptCreator}'
LogGroupName: !Sub '/aws/lambda/${AWS::StackName}-PromptCreator'
RetentionInDays: 30

PromptCopier:
Expand Down Expand Up @@ -225,6 +226,7 @@ Resources:

ChimeSMA:
Type: AWS::Serverless::Function
DependsOn: ChimeSMALogGroup
Properties:
FunctionName: !Sub ${AWS::StackName}-ChimeSMA
Description: Square Chime SMA Call FLow Director
Expand Down Expand Up @@ -254,7 +256,7 @@ Resources:
UpdateReplacePolicy: Retain
DeletionPolicy: Delete
Properties:
LogGroupName: !Sub '/aws/lambda/${ChimeSMA}'
LogGroupName: !Sub '/aws/lambda/${AWS::StackName}-ChimeSMA'
RetentionInDays: 90

ChimeSMAPerm:
Expand Down Expand Up @@ -436,6 +438,7 @@ Resources:

ChatGPT:
Type: AWS::Serverless::Function
DependsOn: ChatGPTLogGroup
Properties:
FunctionName: !Sub ${AWS::StackName}-ChatGPT
Description: Lex fullfilment that talks to ChatGPT service
Expand Down Expand Up @@ -464,7 +467,7 @@ Resources:
UpdateReplacePolicy: Retain
DeletionPolicy: Delete
Properties:
LogGroupName: !Sub '/aws/lambda/${ChatGPT}'
LogGroupName: !Sub '/aws/lambda/${AWS::StackName}-ChatGPT'
RetentionInDays: 90

LexToChatGPTPerm:
Expand Down

0 comments on commit c865364

Please sign in to comment.