Skip to content

AWS Lambda layer build#3110

Merged
iker-barriocanal merged 23 commits into
masterfrom
serverless/awslambda-automation
Dec 18, 2020
Merged

AWS Lambda layer build#3110
iker-barriocanal merged 23 commits into
masterfrom
serverless/awslambda-automation

Conversation

@iker-barriocanal
Copy link
Copy Markdown
Contributor

When something changes in @sentry/serverless a new action is triggered to build a zip file with all necessary @sentry packages to upload to AWS Lambda.

marshall-lee and others added 3 commits November 17, 2020 18:00
The packages to upload to the AWS Lambda layer are zipped. This zip file is cached.
Created another workflow to build the AWS Lambda layer by running a script when changes something on @sentry/serverless
Copy link
Copy Markdown
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/awslambda-build.yml is cool but I is it uploading the artifacts as well?

The goal is that this zip is contained in the artifact bundle once Github actions finished building.

Comment thread packages/serverless/package.json Outdated
Comment thread .github/workflows/build.yml
Comment thread .github/workflows/awslambda-build.yml Outdated
Removed the AWS Lambda workflow, and added the build to the main workflow.
Also, included the generated zip file to the artifacts.
Comment thread packages/serverless/README.md Outdated
Comment thread packages/serverless/README.md Outdated
Comment thread packages/serverless/src/auto.ts
Comment thread packages/serverless/README.md Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/scripts/build-awslambda-layer.js Outdated
Comment thread packages/serverless/src/awslambda.ts Outdated
Comment thread packages/serverless/src/awslambda.ts Outdated
Comment thread packages/serverless/src/awslambda.ts Outdated
Comment thread packages/serverless/src/awslambda.ts Outdated
Comment thread packages/serverless/src/awslambda.ts
Comment thread packages/serverless/src/awslambda.ts
The publish functionality should not be here, deleted.
Referenced the docs. Also, updated `yarn.lock`.
Instead of setting a default value at the beginning of the function, so that the undefined is avoided, it's now set in the parameter.
iker-barriocanal and others added 9 commits December 14, 2020 16:43
Fixed the broken promise, and removed the `path-exists` dependency from `package.json`.
…y/sentry-javascript into serverless/awslambda-automation
Using the function available in the same node version.
Also, removed some logs.
…y/sentry-javascript into serverless/awslambda-automation
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 16, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 19.97 KB (0%)
@sentry/browser - Webpack 20.8 KB (0%)
@sentry/react - Webpack 20.8 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.12 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants