Skip to content
Discussion options

You must be logged in to vote

Taken at face value the docs are technically incorrect - they do say the packages "are already present in the layer" when only 5 specific ones actually are. Fair point!

However, the recommendation to exclude @aws-sdk/* is still correct for practical reasons. The AWS SDK has a deeply interconnected dependency tree - even if we only excluded the 5-6 top-level modules we bundle, you'd still get duplicates in shared modules like credential resolvers, signature helpers, etc. This creates version conflicts and bloats your bundle.

The Powertools utilities use their own AWS SDK modules from the layer, and mixing those with bundled versions can cause runtime issues. For any AWS SDK clients not in …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@willjones9
Comment options

@dreamorosi
Comment options

Answer selected by willjones9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants