Skip to content

Commit 7d61b8f

Browse files
committed
check in recent changes
:quit
1 parent 7ab847e commit 7d61b8f

File tree

9 files changed

+15
-27
lines changed

9 files changed

+15
-27
lines changed

eksbedrock/bedrockrag/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ RUN pip3 install -r requirements.txt
1313

1414
EXPOSE 8080
1515

16-
ENTRYPOINT [python3”, “bedrockrag.py]
16+
ENTRYPOINT ["python3", "bedrockrag.py"]

eksbedrock/kubernetes/ingress/bedrockragconfigmap.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ data:
77
prompt: "what is fsxontap"
88
bedrock_model_id: "anthropic.claude-3-sonnet-20240229-v1:0"
99
metadata: "NA"
10-
memory_window: 10
11-
AWS_Region: "us-east-2"
10+
memory_window: "10"
11+
AWS_Region: "us-east-1"
1212
session_id: "1"
1313
aoss_host: "aoss_host_name"
1414

eksbedrock/kubernetes/ingress/bedrockragdeployment.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ spec:
1313
labels:
1414
app: bedrockrag
1515
spec:
16+
imagePullSecrets:
17+
- name: ecr-secret
1618
containers:
1719
- name: bedrockrag
18-
image: 689069515280.dkr.ecr.us-east-2.amazonaws.com/bedrockragrepo:latest
20+
image: 575481363195.dkr.ecr.us-east-1.amazonaws.com/bedrockragrepo:latest
1921
ports:
2022
- name: http
2123
containerPort: 8080
@@ -28,4 +30,4 @@ spec:
2830
cpu: 100m
2931
limits:
3032
memory: 128Mi
31-
cpu: 100m
33+
cpu: 100m

eksbedrock/terraform/ecr.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ provider "docker" {
3333

3434
# build docker image
3535
resource "docker_image" "chatbot-image" {
36-
name = "${aws_ecr_repository.chatbot.repository_url}:latest"
36+
name = "${aws_ecr_repository.bedrockragrepo.repository_url}:latest"
3737
platform = "linux/amd64"
3838
build {
3939
context = "../chatapp"
40-
tag = ["${aws_ecr_repository.chatbot.repository_url}:latest"]
40+
tag = ["${aws_ecr_repository.bedrockragrepo.repository_url}:latest"]
4141
platform = "linux/amd64"
4242
no_cache = true
4343
}
4444
}
4545

4646
# build docker image
4747
resource "docker_image" "bedrockrag-image" {
48-
name = "${aws_ecr_repository.chatbot.repository_url}:latest"
48+
name = "${aws_ecr_repository.bedrockragrepo.repository_url}:latest"
4949
platform = "linux/amd64"
5050
build {
5151
context = "../bedrockrag"
52-
tag = ["${aws_ecr_repository.chatbot.repository_url}:latest"]
52+
tag = ["${aws_ecr_repository.bedrockragrepo.repository_url}:latest"]
5353
platform = "linux/amd64"
5454
no_cache = true
5555
}

eksbedrock/terraform/locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
locals {
22
env = "staging"
3-
region = "us-east-2"
3+
region = "us-east-1"
44
eks_name = "eksbedrock"
55
eks_version = "1.31"
66
}

eksbedrock/terraform/output.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "aoss_host" {
2-
value = aws_opensearchserverless_collection.fsxnragvector.collection_endpoint
2+
value = aws_opensearchserverless_collection.eksbedrock.collection_endpoint
33
}
44

eksbedrock/terraform/providers.tf

-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,4 @@ provider "aws" {
55
terraform {
66
required_version = ">= 1.0"
77

8-
required_providers {
9-
aws = {
10-
source = "hashicorp/aws"
11-
version = "~> 5.49"
12-
}
13-
}
148
}

eksbedrock/terraform/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable "vpc_cidr" {
44
description = "default CIDR range of the VPC"
55
}
66
variable "aws_region" {
7-
default = "us-east-2"
7+
default = "us-east-1"
88
description = "aws region"
99
}
1010

eksbedrock/terraform/vpc.tf

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11

2-
provider "aws" {
3-
region = var.aws_region
4-
5-
default_tags {
6-
tags = local.tags
7-
}
8-
}
9-
102
locals {
113
tags = {
124
project = "eksbedrock"
@@ -18,7 +10,7 @@ data "aws_availability_zones" "available" {
1810
state = "available"
1911

2012
filter {
21-
name = "group-name"
13+
name = "region-name"
2214
values = [var.aws_region]
2315
}
2416
}

0 commit comments

Comments
 (0)