aws-samples / aws-samples/amazon-bedrock-samples
rag/knowledge-bases/features-examples/04-infrastructure fails to deploy (CDK)
- Dominant language
- Jupyter Notebook
- Stars
- 1.5k
- Forks
- 734
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 4
Description
following the instructions in
https://github.com/aws-samples/amazon-bedrock-samples/tree/main/rag/knowledge-bases/features-examples/04-infrastructure/e2e_rag_using_bedrock_kb_cdk
fails with:
```
1:40:05 PM | CREATE_FAILED | AWS::Lambda::LayerVersion | dependency_layer
Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400; Error Code: Inv
alidParameterValueException; Request ID: 83d6e95c-833f-4775-be86-6543bbc81a22; Proxy: null)" (RequestToken: 3c23ecd4-afac-5ba3-cea5-2013caf8f807, Han
dlerErrorCode: GeneralServiceException)
1:40:05 PM | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | OpenSearchServerlessStack
The following resource(s) failed to create: [Collection, OSSProviderRoleF97A4499, OSSIndexCreationProviderLogsE5FAF344, DataAccessPolicy, dependencyl
ayer10EAF76B, OSSLambdaRoleF799DD1D]. Rollback requested by user.
1:40:05 PM | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | OpenSearchServerlessStack
The following resource(s) failed to create: [Collection, OSSProviderRoleF97A4499, OSSIndexCreationProviderLogsE5FAF344, DataAccessPolicy, dependencyl
ayer10EAF76B, OSSLambdaRoleF799DD1D]. Rollback requested by user.
```
I think the dependecy_layer.zip is too big.
Contributor guide
Research direction
Start in rag/knowledge-bases/features-examples/04-infrastructure/e2e_rag_using_bedrock_kb_cdk and follow its deployment instructions. Reproduce the CDK deployment and inspect dependency_layer.zip against the AWS Lambda unzipped-size limit; done means the example deploys without the dependency_layer CREATE_FAILED error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100