All project notes

Engineering

Automating new tenant onboarding

Creating a customer account could start a workflow that set up tenant resources and triggered onboarding tasks.

An admin portal request passes through AppSync and Lambda to Step Functions. The workflow creates tenant resources and publishes to SNS for welcome email, defaults, and audit logging.
Tenant onboarding diagram extracted from slide 15.

The talk follows an administrator creating a tenant, a customer account with its own SalesCandy resources. The admin portal sends the request through AWS AppSync and Lambda. AWS Step Functions coordinates provisioning, with a DynamoDB table, SQS queue, encryption keys, and IAM policies listed as examples.

The slide then shows Amazon SNS sending the event to three Lambda functions. One sends a welcome email through Amazon SES. The other two write tenant defaults and an audit record to separate Aurora databases. This lets the workflow coordinate infrastructure setup while keeping the follow-up jobs in their own services.

The archived CandyBase configuration corroborates part of the example. It subscribes the bootstrap handler to tenant-created events and defines parallel Step Functions branches for a DynamoDB table, an ingestion queue, and a pending-routing queue. The welcome email, defaults, and audit paths above are described by the presentation.

Sources. SalesCandy’s archived AWS Activate presentation, revised deck dated 22 June 2021, slide 15. Git evidence: Dodol/CandyBase at e0a4fc1, tenantBootstrap/serverless.yml.