Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples #7

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Add examples #7

wants to merge 24 commits into from

Conversation

serkan-ozal
Copy link
Member

No description provided.

Handler: HelloWorld::HelloWorld.Function::FunctionHandler
Runtime: dotnet6
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:269863060030:layer:merloc-gatekeeper:16"
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

Architectures:
- x86_64
Layers:
- arn:aws:lambda:eu-west-2:269863060030:layer:merloc-gatekeeper:15
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

@@ -0,0 +1,10 @@
version = 0.1
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we need this file? Because it specifies your s3 bucket name

Copy link
Contributor

Choose a reason for hiding this comment

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

removed.

Architectures:
- x86_64
Layers:
- arn:aws:lambda:eu-west-2:269863060030:layer:merloc-gatekeeper:15
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

@@ -0,0 +1,11 @@
version = 0.1
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we need this file? Because it specifies your s3 bucket name

Copy link
Contributor

Choose a reason for hiding this comment

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

removed.

Handler: app.lambda_handler
Runtime: python3.9
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:269863060030:layer:merloc-gatekeeper:16"
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

Handler: app.lambda_handler
Runtime: python3.9
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:269863060030:layer:merloc-gatekeeper:16"
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

timeout: 300
region: us-west-2
layers:
- arn:aws:lambda:${self:provider.region}:269863060030:layer:merloc-gatekeeper:16
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

handler: handler.hello
timeout: 120
layers:
- "arn:aws:lambda:eu-west-2:269863060030:layer:merloc-gatekeeper:15"
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

- "arn:aws:lambda:eu-west-2:269863060030:layer:merloc-gatekeeper:15"
environment:
AWS_LAMBDA_EXEC_WRAPPER: /opt/extensions/merloc-gatekeeper-ext/bootstrap
MERLOC_BROKER_URL: wss://23umd9f64e.execute-api.eu-west-2.amazonaws.com/dev
Copy link
Member Author

Choose a reason for hiding this comment

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

This should be set by user, we should not use our own broker URL

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed.

@@ -0,0 +1,42 @@
import type { AWS } from '@serverless/typescript';
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this file redundant?

Copy link
Contributor

Choose a reason for hiding this comment

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

removed.

handler: src/functions/hello/handler.main
timeout: 120
layers:
- "arn:aws:lambda:eu-west-2:269863060030:layer:merloc-gatekeeper:15"
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

NODE_OPTIONS: "--enable-source-maps --stack-trace-limit=1000"

plugins:
- serverless-esbuild
Copy link
Member Author

Choose a reason for hiding this comment

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

shouldn't it be ts plugin? Because serverless local has problems with esbuild

name: aws
runtime: python3.9
layers:
- arn:aws:lambda:${self:provider.region}:269863060030:layer:merloc-gatekeeper:16
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

name: aws
runtime: python3.9
layers:
- arn:aws:lambda:${self:provider.region}:269863060030:layer:merloc-gatekeeper:16
Copy link
Member Author

Choose a reason for hiding this comment

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

Update layer version to 26

Copy link
Contributor

Choose a reason for hiding this comment

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

updated.

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.

3 participants