Skip to content

Conversation

@dfriveros11
Copy link

@dfriveros11 dfriveros11 commented Jan 8, 2026

Description

This PR adds automatic user creation for both System Admin and Tenant Admin during Lab3 deployment, eliminating the need for manual tenant registration to get started.

Changes

  • Added TenantAdminEmailParameter to cognito.yaml and shared-template.yaml
  • Created CognitoTenantAdminUser automatically during deployment in PooledTenant user pool
  • Added CognitoTenantAdminUserGroup for tenant admins
  • Updated deployment.sh to accept -e flag for admin email and -te flag for tenant admin email
  • Both users receive temporary passwords via Cognito email on deployment

Benefits

  • Immediate access: Users can sign in to both Admin UI and Application UI right after deployment
  • Simplified onboarding: No need to manually register a tenant before testing
  • Better workshop experience: Reduces setup time and potential errors

User Details

  • System Admin: username admin in OperationUsers pool (for Admin UI)
  • Tenant Admin: username tenant-admin-default in PooledTenant pool with tenantId default-tenant (for Application UI)

Usage

./deployment.sh -s -c -e [email protected] -te [email protected]

Diego Riveros and others added 4 commits January 7, 2026 19:56
…dmin

- Add TenantAdminEmailParameter to cognito.yaml and shared-template.yaml
- Create CognitoTenantAdminUser automatically during deployment in PooledTenant user pool
- Add CognitoTenantAdminUserGroup for tenant admins
- Update deployment.sh to accept -e flag for admin email and -te flag for tenant admin email
- Both users receive temporary passwords via Cognito email on deployment
- System Admin user: username 'admin' in OperationUsers pool
- Tenant Admin user: username 'tenant-admin-default' in PooledTenant pool with tenantId 'default-tenant'

This allows immediate access to both Admin UI and Application UI without manual tenant registration.
i change the names for  serverless-saas-workshop-lab2 to serverless-saas.
change names of PooledTenant-ServerlessSaaS-lab3-UserPool to PooledTenant-ServerlessSaaSUserPool and OperationUsers-ServerlessSaas-lab3-UserPool to OperationUsers-ServerlessSaaSUserPool
I change the names for  serverless-saas-workshop-lab2 to serverless-saas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant