AWS Amplify is a set of tools that helps web and mobile developers build full-stack applications on AWS. In this workshop, we use Amplify Gen 2, which has two parts:
amplify/ folder of the project. Amplify uses the AWS CDK to turn this code into AWS CloudFormation stacks.amplify_outputs.json file.For development, each person runs their own cloud sandbox with the npx ampx sandbox command. The sandbox deploys the backend to your AWS account, watches the amplify/ folder and automatically updates every time you save a file. After the deployment finishes, the sandbox creates the amplify_outputs.json file in the root folder of the project.
Amplify Gen 1 (the Amplify CLI with the amplify init, amplify add, amplify push commands) entered maintenance mode on May 1, 2026 and will reach end of support on May 1, 2027. That is why this workshop uses Amplify Gen 2.
Amplify Auth uses Amazon Cognito:
In this workshop, users sign in with email and password. The display name is stored in the Cognito preferred_username attribute.
Amplify Storage uses Amazon S3 and grants access by path. You declare who can do what with each folder in the bucket, and Amplify automatically creates the corresponding IAM policies.
Our application stores files at protected/{identityId}/{file name}: every signed-in user can read them, but only the owner can write and delete files in their own folder.