feat: adds folder for aws lambda layers#30
Conversation
|
@scefali I wonder if it would make sense just to add the new fields to the already existing entry in the registry and not create a new folder With that we could make sure that the version we released to npm is the version on aws lambda |
|
@HazAT Great question. My concern of just putting the new fields in the existing entry has to do with the fact that the Python layer we publish is runtime specific (see https://github.com/getsentry/sentry-python/pull/927/files). We have a different Layer for each version of Python. So a single Python release would have four new layer versions. I'm also conerned about adding a bunch of new fields to an NPM release that have nothing to do with NPM and I'm worried it might make it harder to figure out which versions of the Layer we've released (some releases might have the new fields but others won't) A separate folder just seems cleaner IMO. What's the hesitation of having it in a new folder? Would it help if I put it somewhere like the |
|
OK, I guess it makes sense. It's no problem having another folder I just thought it's a 1:1 relation to the SDK. |
| "account_number": "943013980633", | ||
| "layer_name": "SentryNodeServerlessSDK", | ||
| "repo_url": "https://github.com/getsentry/sentry-javascript", | ||
| "main_docs_url": "https://docs.sentry.io/platforms/node/guides/aws-lambda" |
There was a problem hiding this comment.
we should add a list of regions
| @@ -0,0 +1,14 @@ | |||
| { | |||
There was a problem hiding this comment.
IIRC this file should be a symlink
There was a problem hiding this comment.
This PR shows how we would add the AWS Lambda Layer information to the release registry. We will need this information in our docs (manual setup) as well as in Sentry (automated setup). AWS Lambda layers are installed by providing the ARN of the layer (which can be done manually or automatically with the AWS Lambda integration that is coming out). The layer ARN has the following components:
The layer version is an auto-incrementing number that would be updated each time we make a new release for that SDK. We should also keep track of what SDK version maps to what version of the layer in case someone needs to debug an older layer.
Note that I only include the
1.jsonandlatest.jsonhere to show what it would look like. Craft should be always generating these files during the release process.