For detailed documentation and examples, please visit the original repository.
This guide will walk you through the process of setting up your own agents by forking this repository, configuring necessary credentials, and deploying the AWS OIDC setup.
- Go to the eliza-fleet repository.
- Click on the "Fork" button in the top-right corner to create your own copy of the repository.
- Navigate to your forked repository on GitHub.
- Go to "Settings" > "Environments" and create a new environment called
eliza-fleet
. - Set branch protection rules to ensure only authorized changes are made to the main branch.
- Within the
eliza-fleet
environment, add the following secrets:AWS_ACCOUNT_ID
: Your AWS account ID.
-
Clone your forked repository to your local machine:
git clone https://github.com/YOUR_USERNAME/eliza.git cd eliza
-
Install Node.js using
nvm
:nvm install nvm use
-
Install
pnpm
globally:npm install -g pnpm
-
Install project dependencies:
pnpm install
-
Deploy the CDK stack to set up the OIDC provider and IAM roles:
export GITHUB_REPOSITORY=lachiejames/eliza-fleet pnpm cdk deploy github-actions
This will create the necessary AWS resources for GitHub Actions to authenticate using OIDC.
- Go to the "Actions" tab in your GitHub repository.
- Select the "Deploy" workflow.
- Click on "Run workflow" to manually trigger the deployment.
- Once the workflow completes, verify that your agents are deployed on ECS.
- Check the AWS Management Console to ensure the ECS cluster, services, and tasks are correctly set up.
- For more information on configuring OIDC with GitHub Actions, refer to the GitHub documentation.
- For AWS CDK setup, refer to the AWS CDK documentation.
By following these steps, you can securely set up and deploy your own agents using this repository on Amazon ECS.