Skip to content

Commit

Permalink
Minor update to CDK dependencies for custom-construct order of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Oct 26, 2024
1 parent 7d5e9c9 commit 0c7f39e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cdk/stacks/cdk_chatbot_api_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def create_bedrock_components(self) -> None:
)

# Add dependencies to the KB
bedrock_knowledge_base.add_dependency(opensearch_serverless_collection)
bedrock_knowledge_base.node.add_dependency(trigger_lambda_cr)

# Create the datasource for the bedrock KB
bedrock_data_source = aws_bedrock.CfnDataSource(
Expand All @@ -860,7 +860,6 @@ def create_bedrock_components(self) -> None:
)
# Only trigger the custom resource when the kb is completed
bedrock_data_source.node.add_dependency(bedrock_knowledge_base)
bedrock_data_source.node.add_dependency(trigger_lambda_cr)

# # TODO: Add the automation for the KB ingestion
# # ... (manual for now when docs refreshed... could be automated)
Expand Down

0 comments on commit 0c7f39e

Please sign in to comment.