3. Connect AWS Amplify
Set up hosting with automatic deployments on every git push.
Why Amplify?
- Auto-deploy: Push to GitHub → site updates automatically
- PR Previews: Every pull request gets its own preview URL
- Free SSL: HTTPS certificates auto-provisioned
- Global CDN: Fast load times worldwide via CloudFront
- Simple pricing: Free tier covers most small sites
Prerequisites
- An AWS account
- AWS CLI installed on your OpenClaw server
- IAM user with Amplify permissions
Set Up AWS Credentials
Create an IAM User
- Go to AWS Console → IAM → Users → Create user
- Name it something like
openclaw-bot - Attach these policies:
AdministratorAccess-AmplifyAmazonRoute53FullAccess(for DNS setup later)
- Create an access key (CLI use case)
Configure AWS CLI
On your server, run:
aws configure
Enter your Access Key ID and Secret Access Key when prompted.
Tell your assistant:
"I've configured AWS credentials. Please verify they work."
Create the Amplify App
Option A: Let Your Assistant Do It (Recommended)
Provide a GitHub personal access token with repo and admin:repo_hook scopes.
Set it as an environment variable on your server:
export GITHUB_TOKEN="ghp_your_token_here"
Add to ~/.bashrc to persist across sessions.
Then tell your assistant:
"Create an Amplify app for my repo. The GitHub token is set in the GITHUB_TOKEN environment variable."
Option B: Use the AWS Console
- Go to AWS Amplify Console
- Click "New app" → "Host web app"
- Select GitHub and authorize
- Choose your repository and branch
- Amplify auto-detects the build settings from
amplify.yml - Deploy!
Verify Deployment
After setup, your assistant will provide:
- App ID: Used for future CLI commands
- Amplify URL: Something like
https://main.d1234abc.amplifyapp.com
Visit the URL to confirm your site is live!