You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 1I did not use CDK (only Serverless Framework) so I don't know how this exactly works, but I don't see a reason to multiply node_modules. It should be possible to create multiple functions in single project.Maciej Radzikowski– Maciej Radzikowski2021-02-15 06:58:06 +00:00Commented Feb 15, 2021 at 6:58
- 1@JHH agree and as they want to use sdk v3 they are going to include them one way or another. I suggest they provide them to their lambda in an isolated layer and not bundle together with rest of module deps. In a separate layer they may share with other lambdas and when v3 is provided out of the box OP can either drop the layer or continue maintain specific v3 version themselves.bdargan– bdargan2021-04-04 02:04:11 +00:00Commented Apr 4, 2021 at 2:04
- 3Is there any reason they do not include the aws-sdk v3 as a acpkage the same way they do it with v2?zirkelc– zirkelc2021-07-06 15:58:08 +00:00Commented Jul 6, 2021 at 15:58
- 3The downside of always deploying a specific SDK version via layer, or otherwise, is that you lose the benefit of the AWS Lambda service auto updating the SDK dependency for you. That's a potential no-cost security benefit whose value needs to be weighed against the risk of a breaking change in the SDK.jarmod– jarmod2021-10-22 15:20:14 +00:00Commented Oct 22, 2021 at 15:20
- 2@zrkl, AWS seem to have gone to a lot of trouble in v3 to separate out all their packages. They've always advised people to bundle up a specific SDK version rather than relying on the lambda runtime version. I'd imagine they might be intentionally not exposing v3 so that people follow this advice; afterall I'm sure it would be fairly trivial for them to just bake v3 into the lambda runtime e.g. with a Docker build. As for v2, they probably have to leave that in there for backwards compatibility. I may be wrong, maybe v3 will be part of the runtime in future, but I'm not holding my breath.Colm Bhandal– Colm Bhandal2022-07-20 16:25:04 +00:00Commented Jul 20, 2022 at 16:25
| Show 6 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you