Create Amplify app
Create the app in the Console
Section titled “Create the app in the Console”- Open the AWS Console → AWS Amplify
- Create new app → Host web app
- Choose GitHub as the repository provider
- Authorize / install the Amplify GitHub App
Amplify GitHub App - OAuth install that lets Amplify clone your repo and receive push/PR webhooks without a long-lived personal access token. for your user or organization - Select the
amplify-astro-cicdrepository - Connect branch
mainfirst and confirm Amplify detected amplify.yml
Root amplify.yml file that tells Amplify how to install, build, and which artifact directory to publish. - Save and deploy - wait until the
mainjob succeeds - Open
https://main.<app-id>.amplifyapp.comand confirm the Astro page loads
Record your app id (visible in the Console URL and default domain). You will need it for staging and preview URLs.
Add the staging branch
Section titled “Add the staging branch”- In the Amplify app → Branch / hosting overview → Connect branch
- Select Git branch
staging - Use the same build settings (
amplify.yml) - Deploy and open
https://staging.<app-id>.amplifyapp.com
Verify build settings
Section titled “Verify build settings”Under build settings, confirm:
- App root is repository root
- Build uses
amplify.yml - Artifact directory is
dist
Screenshots to capture (for your notes)
Section titled “Screenshots to capture (for your notes)”When documenting your own run, capture:
- GitHub App install confirmation
- Successful
maindeploy - Successful
stagingdeploy
This walkthrough stays on default Amplify domains - no custom domain step.
Next: Previews and auto-delete.