aws-samples / aws-saas-factory-ref-solution-serverless-saas

MIT No Attribution
459 stars 153 forks source link

Stuck in lab #2 with access denied to Admin and User landing pages. #32

Closed weisisheng closed 2 years ago

weisisheng commented 2 years ago

First off, this is an extraordinary tutorial in the breadth and depth of practical design issues it covers. Kudos!

When initially deploying lab #2, I got the following errors-->

Error: Failed to create/update the stack: serverless-saas, Waiter StackCreateComplete failed: An error occurred (ExpiredToken): The security token included in the request is expired Client code is getting deployed

An error occurred (InvalidParameterException) when calling the AdminCreateUser operation: 1 validation error detected: Value 'None' at 'userPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w-]+_[0-9a-zA-Z]+

An error occurred (InvalidParameterException) when calling the AdminAddUserToGroup operation: 1 validation error detected: Value 'None' at 'userPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w-]+_[0-9a-zA-Z]+

aws s3 ls s3://None

An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist Error! S3 Bucket: None not readable

Added the code in tenant and user management, per instructions, redeployed and got two URLs. Both are rendering "access denied" messages.

Welcome any tips / trailheads to proceed.

Using Cloud9 instance with python 3.8 per the boilerplate setup. Thanks in advance.

weisisheng commented 2 years ago

My mistake. I was using the original deployed versions of aws-sam-cli. Upgrading to 1.53 fixed everything.