From a3f0a05535d94ed0d87b028aa2abe1de84273084 Mon Sep 17 00:00:00 2001 From: umaxcode Date: Sat, 18 Jan 2025 08:57:23 +0000 Subject: [PATCH 1/2] fix: fix constraint validation for user pool name length --- template.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.yaml b/template.yaml index edeace9..5b5d2a1 100644 --- a/template.yaml +++ b/template.yaml @@ -77,7 +77,7 @@ Resources: UserPool: # Cognito User Pool Type: AWS::Cognito::UserPool Properties: - UserPoolName: !Sub ${AWS::StackName}-task-management-user-pool + UserPoolName: !Sub ${AWS::StackName}-user-pool AdminCreateUserConfig: AllowAdminCreateUserOnly: true AutoVerifiedAttributes: @@ -109,7 +109,7 @@ Resources: UserPoolClient: # Cognito User Pool Client Type: AWS::Cognito::UserPoolClient Properties: - ClientName: !Sub ${AWS::StackName}-task-management-user-pool-client + ClientName: !Sub ${AWS::StackName}-user-pool-client GenerateSecret: true AllowedOAuthFlowsUserPoolClient: true AllowedOAuthFlows: @@ -139,7 +139,7 @@ Resources: UserPoolDomain: # Cognito User Pool Domain Type: AWS::Cognito::UserPoolDomain Properties: - Domain: !Sub ${AWS::StackName}-task-management-user-pool-domain + Domain: !Sub ${AWS::StackName}-user-pool-domain UserPoolId: !Ref UserPool ApiAdministratorsUserPoolGroup: # Cognito User Group for administrators From 87ba36be2c0d042cde800c24bdb51e407d3e12c5 Mon Sep 17 00:00:00 2001 From: umaxcode Date: Sat, 18 Jan 2025 09:18:43 +0000 Subject: [PATCH 2/2] fix: fix same export name error --- template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.yaml b/template.yaml index 5b5d2a1..dc9638b 100644 --- a/template.yaml +++ b/template.yaml @@ -591,7 +591,7 @@ Outputs: Description: URL for application Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod' Export: - Name: !Sub ${AWS::StackName}-TaskManagementSystemApi + Name: !Sub ${AWS::StackName}-Api TaskTableName: Description: 'The name of the DynamoDB Task table'