Skip to content

rag/knowledge-bases/features-examples/04-infrastructure fails to deploy (CDK) #524

Open
@fulcrum-stelios-papadopoulos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions