Commit 7d61b8f 1 parent 7ab847e commit 7d61b8f Copy full SHA for 7d61b8f
File tree 9 files changed +15
-27
lines changed
9 files changed +15
-27
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ RUN pip3 install -r requirements.txt
13
13
14
14
EXPOSE 8080
15
15
16
- ENTRYPOINT [“ python3”, “ bedrockrag.py” ]
16
+ ENTRYPOINT [" python3" , " bedrockrag.py" ]
Original file line number Diff line number Diff line change 7
7
prompt : " what is fsxontap"
8
8
bedrock_model_id : " anthropic.claude-3-sonnet-20240229-v1:0"
9
9
metadata : " NA"
10
- memory_window : 10
11
- AWS_Region : " us-east-2 "
10
+ memory_window : " 10 "
11
+ AWS_Region : " us-east-1 "
12
12
session_id : " 1"
13
13
aoss_host : " aoss_host_name"
14
14
Original file line number Diff line number Diff line change 13
13
labels :
14
14
app : bedrockrag
15
15
spec :
16
+ imagePullSecrets :
17
+ - name : ecr-secret
16
18
containers :
17
19
- 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
19
21
ports :
20
22
- name : http
21
23
containerPort : 8080
28
30
cpu : 100m
29
31
limits :
30
32
memory : 128Mi
31
- cpu : 100m
33
+ cpu : 100m
Original file line number Diff line number Diff line change @@ -33,23 +33,23 @@ provider "docker" {
33
33
34
34
# build docker image
35
35
resource "docker_image" "chatbot-image" {
36
- name = " ${ aws_ecr_repository . chatbot . repository_url } :latest"
36
+ name = " ${ aws_ecr_repository . bedrockragrepo . repository_url } :latest"
37
37
platform = " linux/amd64"
38
38
build {
39
39
context = " ../chatapp"
40
- tag = [" ${ aws_ecr_repository . chatbot . repository_url } :latest" ]
40
+ tag = [" ${ aws_ecr_repository . bedrockragrepo . repository_url } :latest" ]
41
41
platform = " linux/amd64"
42
42
no_cache = true
43
43
}
44
44
}
45
45
46
46
# build docker image
47
47
resource "docker_image" "bedrockrag-image" {
48
- name = " ${ aws_ecr_repository . chatbot . repository_url } :latest"
48
+ name = " ${ aws_ecr_repository . bedrockragrepo . repository_url } :latest"
49
49
platform = " linux/amd64"
50
50
build {
51
51
context = " ../bedrockrag"
52
- tag = [" ${ aws_ecr_repository . chatbot . repository_url } :latest" ]
52
+ tag = [" ${ aws_ecr_repository . bedrockragrepo . repository_url } :latest" ]
53
53
platform = " linux/amd64"
54
54
no_cache = true
55
55
}
Original file line number Diff line number Diff line change 1
1
locals {
2
2
env = " staging"
3
- region = " us-east-2 "
3
+ region = " us-east-1 "
4
4
eks_name = " eksbedrock"
5
5
eks_version = " 1.31"
6
6
}
Original file line number Diff line number Diff line change 1
1
output "aoss_host" {
2
- value = aws_opensearchserverless_collection. fsxnragvector . collection_endpoint
2
+ value = aws_opensearchserverless_collection. eksbedrock . collection_endpoint
3
3
}
4
4
Original file line number Diff line number Diff line change @@ -5,10 +5,4 @@ provider "aws" {
5
5
terraform {
6
6
required_version = " >= 1.0"
7
7
8
- required_providers {
9
- aws = {
10
- source = " hashicorp/aws"
11
- version = " ~> 5.49"
12
- }
13
- }
14
8
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ variable "vpc_cidr" {
4
4
description = " default CIDR range of the VPC"
5
5
}
6
6
variable "aws_region" {
7
- default = " us-east-2 "
7
+ default = " us-east-1 "
8
8
description = " aws region"
9
9
}
10
10
Original file line number Diff line number Diff line change 1
1
2
- provider "aws" {
3
- region = var. aws_region
4
-
5
- default_tags {
6
- tags = local. tags
7
- }
8
- }
9
-
10
2
locals {
11
3
tags = {
12
4
project = " eksbedrock"
@@ -18,7 +10,7 @@ data "aws_availability_zones" "available" {
18
10
state = " available"
19
11
20
12
filter {
21
- name = " group -name"
13
+ name = " region -name"
22
14
values = [var . aws_region ]
23
15
}
24
16
}
You can’t perform that action at this time.
0 commit comments