-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated ECR/test-ecr-pull-through-cache-pull.sh * Updated Bedrock
- Loading branch information
Showing
5 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Bedrock | ||
|
||
- Bedrock, LangChain, RAG (Retrieval Augmented Generation), streamlit | ||
- Bedrock, Knowledge Base, Agents for Bedrock | ||
|
||
Using Knowledge base | ||
1. AWS SDK/CLI - `Retrieve` and `RetrieveAndGenerate` | ||
2. Opensource LangChain - Bedrock integration | ||
3. Agent for Bedrock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
boto3==1.34.47 | ||
langchain==0.1.8 | ||
langchain-community==0.0.21 | ||
streamlit==1.31.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
AWS_REGION=ap-southeast-2 | ||
PRIV_REGISTRY=123456789012.dkr.ecr.${AWS_REGION}.amazonaws.com | ||
|
||
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${PRIV_REGISTRY} | ||
|
||
docker pull ${PRIV_REGISTRY}/ecr-public/amazonlinux/amazonlinux:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
AWS_REGION=ap-southeast-2 | ||
PRIV_REGISTRY=123456789012.dkr.ecr.${AWS_REGION}.amazonaws.com | ||
aws ecr describe-pull-through-cache-rules | ||
|
||
aws ecr create-pull-through-cache-rule --ecr-repository-prefix ecr-public --upstream-registry-url public.ecr.aws --region ap-southeast-2 | ||
|
||
# aws ecr create-pull-through-cache-rule --ecr-repository-prefix docker-hub --upstream-registry-url registry-1.docker.io --region ap-southeast-2 | ||
|
||
aws ecr validate-pull-through-cache-rule --ecr-repository-prefix ecr-public --region ap-southeast-2 | ||
|
||
aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${PRIV_REGISTRY} | ||
|
||
docker pull ${PRIV_REGISTRY}/ecr-public/amazonlinux/amazonlinux:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters