Skip to content

Docs: Update Link to Layer Building Optimization #6238

Closed
@ChristophrK

Description

@ChristophrK

What were you searching in the docs?

I was looking into the optimisation process that is done to the prebuild layer to copy it for my own layer building process. The current link is to a docker build in the repo powertools-lambda-layer-cdk, but the powertools-lambda-layer-cdk repo will be archived on 5th of April (aws-powertools/powertools-lambda-layer-cdk#112).

Is this related to an existing documentation section?

https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer

How can we improve?

[Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html){target="_blank"} is a .zip file archive that can contain additional code, pre-packaged dependencies, data, or configuration files. We compile and optimize [all dependencies](#install), and remove duplicate dependencies [already available in the Lambda runtime](https://github.com/aws-powertools/powertools-lambda-layer-cdk/blob/d24716744f7d1f37617b4998c992c4c067e19e64/layer/Python/Dockerfile#L36){target="_blank"} to achieve the most optimal size.

The link in the docs above should be changed from:

https://github.com/aws-powertools/powertools-lambda-layer-cdk/blob/d24716744f7d1f37617b4998c992c4c067e19e64/layer/Python/Dockerfile#L36

To the same docker file inside of the main repo

RUN cd /asset/python && \

Got a suggestion in mind?

I would like to implement the change in a quick PR to have my first little contribution to this great project. I would just wait for the triage to complete in accordance with the disclaimer :)

Acknowledgment

  • I understand the final update might be different from my proposed suggestion, or refused.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions