Problem
The notebook labs/module5/notebooks/2_llm_gateway.ipynb (cell 4) expects the following keys in the SSM parameter /agentic-platform/config/agentcore-dev:
DYNAMODB_USAGE_LOGS_TABLE
DYNAMODB_USAGE_PLANS_TABLE
REDIS_HOST
REDIS_PORT
REDIS_PASSWORD_SECRET_ARN
However, the Terraform platform-agentcore stack does not include DynamoDB table provisioning or their names in the configuration_sections passed to the parameter store module.
Error
KeyError: 'DYNAMODB_USAGE_LOGS_TABLE'
Root Cause
The DynamoDB tables for the LLM gateway usage plans/logs are not provisioned by Terraform. They appear to be created at application deployment time (deploy/deploy-application.sh llm-gateway --build), but their table names are never written back to the SSM parameter store config.
The notebook assumes all config is available in SSM after the infrastructure stack is deployed, but the DynamoDB resources are a gap between infrastructure and application deployment.
Affected Files
labs/module5/notebooks/2_llm_gateway.ipynb (cell 4) — expects DYNAMODB_USAGE_LOGS_TABLE and DYNAMODB_USAGE_PLANS_TABLE
infrastructure/stacks/platform-agentcore/main.tf — configuration_sections does not include DynamoDB table names
Expected Fix
Either:
- Add DynamoDB table provisioning to the Terraform stack and include table names in
configuration_sections
- Or add a prerequisite note in the notebook stating the LLM gateway must be deployed first (
deploy/deploy-application.sh llm-gateway --build) before this cell will work
- Or wrap the config lookups in a try/except with a helpful error message pointing to the deployment step
Related
Problem
The notebook
labs/module5/notebooks/2_llm_gateway.ipynb(cell 4) expects the following keys in the SSM parameter/agentic-platform/config/agentcore-dev:DYNAMODB_USAGE_LOGS_TABLEDYNAMODB_USAGE_PLANS_TABLEREDIS_HOSTREDIS_PORTREDIS_PASSWORD_SECRET_ARNHowever, the Terraform
platform-agentcorestack does not include DynamoDB table provisioning or their names in theconfiguration_sectionspassed to the parameter store module.Error
Root Cause
The DynamoDB tables for the LLM gateway usage plans/logs are not provisioned by Terraform. They appear to be created at application deployment time (
deploy/deploy-application.sh llm-gateway --build), but their table names are never written back to the SSM parameter store config.The notebook assumes all config is available in SSM after the infrastructure stack is deployed, but the DynamoDB resources are a gap between infrastructure and application deployment.
Affected Files
labs/module5/notebooks/2_llm_gateway.ipynb(cell 4) — expectsDYNAMODB_USAGE_LOGS_TABLEandDYNAMODB_USAGE_PLANS_TABLEinfrastructure/stacks/platform-agentcore/main.tf—configuration_sectionsdoes not include DynamoDB table namesExpected Fix
Either:
configuration_sectionsdeploy/deploy-application.sh llm-gateway --build) before this cell will workRelated