forked from aws-samples/generative-ai-cdk-constructs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
37 lines (23 loc) · 1.06 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
import os
import aws_cdk as cdk
from python_samples.bedrock_opensearch_stack import BedrockOpensearchStack
from python_samples.bedrock_aurora_stack import BedrockAuroraStack
from python_samples.bedrock_pinecone_stack import BedrockPineconeStack
from python_samples.opensearch_vectorindex import OpensearchVectorIndex
app = cdk.App()
env = cdk.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'),
region=os.getenv('CDK_DEFAULT_REGION'))
#---------------------------------------------------------------------------
# Bedrock knowledge base with OpenSearch
#---------------------------------------------------------------------------
BedrockOpensearchStack(app, "BedrockOpensearchStack"+os.getenv('SUFFIX',''),
env=env
)
#---------------------------------------------------------------------------
# Bedrock knowledge base with Amazon RDS Aurora PostgreSQL
#---------------------------------------------------------------------------
# BedrockAuroraStack(app, "BedrockAuroraStack",
# env=env
# )
app.synth()