Skip to content

Commit 3b84b97

Browse files
author
mike dupont
committed
getting it to work
1 parent d1e1667 commit 3b84b97

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.github/workflows/image.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,29 @@ jobs:
8686
with:
8787
push: true
8888
tags: h4ckermike/elizaos-eliza:experimental
89+
90+
# push to ecr
91+
- name: Configure AWS credentials
92+
uses: meta-introspector/configure-aws-credentials@v4
93+
with:
94+
aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
95+
role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
96+
# FIXME hard coded
97+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github
98+
99+
- name: Login to Amazon ECR
100+
id: login-ecr
101+
uses: meta-introspector/amazon-ecr-login@v1
102+
103+
- name: Set short sha
104+
id: sha_short
105+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
106+
107+
- name: Build and push ecr
108+
uses: meta-introspector/build-push-action@v6.10.0
109+
with:
110+
push: true
111+
tags: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}:latest
112+
cache-from: type=gha
113+
cache-to: type=gha,mode=max
114+
provenance: false

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1-
# debug
1+
# setup
2+
we dont use terraform for the ecr or the secrets because they will change so often here are the simple aws scripts for them.
3+
4+
`aws ecr create-repository --repository-name agent/eliza`
5+
6+
`set_secrets.sh` calls
7+
`aws ssm put-parameter --name "agent_openai_key" --value "${OPENAI_API_KEY}" --type String`
8+
9+
## connecting with server
10+
11+
`ssh-ssm.py` to find the server
212

13+
for example:
14+
`aws ssm start-session --target i-0e156165e86473c93 --profile mdupont --region us-east-2`
15+
16+
## terraform-aws-oidc-github
17+
https://github.com/jmikedupont2/terraform-aws-oidc-github
18+
19+
in my time 2024/12/18/terraform-aws-oidc-github on branch
20+
run the tofu apply in the example after editing the variables and files.
21+
22+
# debug
323
`pnpm start:debug --characters=./characters/eliza.character.json`
424

525
start direct client here

0 commit comments

Comments
 (0)