Skip to content

Commit

Permalink
Fix AWS env vars in templates (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon authored Jan 31, 2025
1 parent d1e9577 commit 5b5ae1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions docs/README.quickstart-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ Choose one of the `Docker Compose` files that meets your preferred model and gra
### AWS Bedrock API

```
export AWS_ID_KEY=<ID-KEY-HERE>
export AWS_SECRET_KEY=<TOKEN-GOES-HERE>
export AWS_ACCESS_KEY_ID=<ID-KEY-HERE>
export AWS_SECRET_ACCESS_KEY=<TOKEN-GOES-HERE>
export AWS_DEFAULT_REGION=<REGION-HERE>
docker compose -f tg-launch-bedrock-cassandra.yaml up -d # Using Cassandra as the graph store
docker compose -f tg-launch-bedrock-neo4j.yaml up -d # Using Neo4j as the graph store
```
Expand Down
6 changes: 3 additions & 3 deletions templates/components/bedrock-rag.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ local chunker = import "chunker-recursive.jsonnet";
create:: function(engine)

local envSecrets = engine.envSecrets("bedrock-credentials")
.with_env_var("AWS_ID_KEY", "aws-id-key")
.with_env_var("AWS_SECRET", "aws-secret")
.with_env_var("AWS_REGION", "aws-region");
.with_env_var("AWS_ACCESS_KEY_ID", "aws-id-key")
.with_env_var("AWS_SECRET_ACCESS_KEY", "aws-secret")
.with_env_var("AWS_DEFAULT_REGION", "aws-region");

local containerRag =
engine.container("text-completion-rag")
Expand Down
6 changes: 3 additions & 3 deletions templates/components/bedrock.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ local chunker = import "chunker-recursive.jsonnet";
create:: function(engine)

local envSecrets = engine.envSecrets("bedrock-credentials")
.with_env_var("AWS_ID_KEY", "aws-id-key")
.with_env_var("AWS_SECRET", "aws-secret")
.with_env_var("AWS_REGION", "aws-region");
.with_env_var("AWS_ACCESS_KEY_ID", "aws-id-key")
.with_env_var("AWS_SECRET_ACCESS_KEY", "aws-secret")
.with_env_var("AWS_DEFAULT_REGION", "aws-region");

local container =
engine.container("text-completion")
Expand Down

0 comments on commit 5b5ae1c

Please sign in to comment.