@@ -330,3 +330,68 @@ pnpm install --include=optional sharp
330
330
331
331
[ ![ Star History Chart] ( https://api.star-history.com/svg?repos=elizaos/eliza&type=Date )] ( https://star-history.com/#elizaos/eliza&Date )
332
332
333
+
334
+
335
+
336
+ ## Notes
337
+
338
+ ```
339
+ export AWS_REGION=us-east-1
340
+ export AWS_DEFAULT_REGION=us-east-1
341
+ aws ssm start-session --target i-0fe1eb04620fa49b6
342
+ sudo su -
343
+ cd /opt/agent/
344
+ git branch
345
+ * feature/systemd-parameters
346
+ docker ps
347
+ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
348
+ apt install asciinema
349
+ asciinema rec debug1.cast
350
+ ```
351
+
352
+ cat /var/lib/cloud/instances/i-0fe1eb04620fa49b6/user-data.txt
353
+ if [ ! -d "/opt/agent/" ] ; then
354
+ git clone https://github.com/meta-introspector/cloud-deployment-eliza/ "/opt/agent/"
355
+ fi
356
+ cd "/opt/agent/" || exit 1
357
+ git stash
358
+ git fetch --all # get the latest version
359
+ git checkout --track --force "origin/feature/systemd-parameters"
360
+ bash -x /opt/agent/rundocker.sh
361
+
362
+ Get our new version:
363
+ ```
364
+ git pull
365
+ ```
366
+
367
+ Better error messages:
368
+ Could not find tine_agent_agent_image
369
+ Could not find tine_agent_tokenizer_image
370
+ Could not find tine_agent_twitter_email
371
+ Could not find tine_agent_twitter_username
372
+ Could not find tine_agent_groq_key
373
+ Could not find tine_agent_twitter_password
374
+
375
+ Now lets put this into aws and overwrite the old key
376
+ ```
377
+ export AGENT_IMAGE=h4ckermike/arm64-tokenizers:feature-arm64
378
+ export TOKENIZER_IMAGE=h4ckermike/elizaos-eliza:feature-arm64_fastembed
379
+ …. All the variables mentioned.
380
+ aws ssm put-parameter --overwrite --name "tine_agent_twitter_password" --value "${TWITTER_PASSWORD}" --type String
381
+ aws ssm put-parameter --overwrite --name "tine_agent_twitter_email" --value "${TWITTER_EMAIL}" --type String
382
+ aws ssm put-parameter --overwrite --name "tine_agent_twitter_username" --value "${TWITTER_USERNAME}" --type String
383
+ aws ssm put-parameter --name "tine_agent_openai_key" --value "${OPENAI_API_KEY}" --type String
384
+ aws ssm put-parameter --name "tine_agent_openai_endpoint" --value "${OPENAI_API_BASE}" --type String
385
+ aws ssm put-parameter --name "tine_agent_openai_model" --value "${LLMMODEL}" --type String aws ssm put-parameter --name "tine_agent_groq_key" --value "${GROQ_API_KEY}" --type String
386
+ ```
387
+ This is in the set_secrets.sh
388
+
389
+ Using docker images from docker hub will cause docker to block you eventually
390
+ For bandwidth. You will want to host the docker images in your ECR repository or somewhere you own for stability.
391
+
392
+ bash ./get_secrets.sh
393
+ cat /var/run/agent/secrets/env
394
+
395
+ aws ssm start-session --target i-0fe1eb04620fa49b6 --region us-east-1
396
+
397
+ https://github.com/jmikedupont2/ai-agent-terraform/tree/feature/codebuild
0 commit comments