3. Connect AWS Amplify

Set up hosting with automatic deployments on every git push.

Why Amplify?

Prerequisites

  1. An AWS account
  2. AWS CLI installed on your OpenClaw server
  3. IAM user with Amplify permissions

Set Up AWS Credentials

Create an IAM User

  1. Go to AWS Console → IAM → Users → Create user
  2. Name it something like openclaw-bot
  3. Attach these policies:
    • AdministratorAccess-Amplify
    • AmazonRoute53FullAccess (for DNS setup later)
  4. 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

  1. Go to AWS Amplify Console
  2. Click "New app" → "Host web app"
  3. Select GitHub and authorize
  4. Choose your repository and branch
  5. Amplify auto-detects the build settings from amplify.yml
  6. Deploy!

Verify Deployment

After setup, your assistant will provide:

Visit the URL to confirm your site is live!