Skip to content

chore: move core utilities example to aws-samples/aws-lambda-powertools-examples #733

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

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 0 additions & 115 deletions example/HelloWorldFunction/src/main/java/helloworld/App.java

This file was deleted.

25 changes: 0 additions & 25 deletions example/HelloWorldFunction/src/main/java/helloworld/AppStream.java

This file was deleted.

41 changes: 0 additions & 41 deletions example/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@ Globals:
Runtime: java11

Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: HelloWorldFunction
Handler: helloworld.App::handleRequest
MemorySize: 512
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Variables:
POWERTOOLS_SERVICE_NAME: "Payment Service"
POWERTOOLS_LOG_LEVEL: INFO
Tracing: Active
Events:
HelloWorld:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /hello
Method: get

HelloWorldValidationFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
Expand All @@ -44,23 +26,6 @@ Resources:
Path: /hello
Method: post

HelloWorldStreamFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: HelloWorldFunction
Handler: helloworld.AppStream::handleRequest
MemorySize: 512
Tracing: Active
Environment:
Variables:
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.7
Events:
HelloWorld:
Type: Api
Properties:
Path: /hellostream
Method: get

HelloWorldParamsFunction:
Type: AWS::Serverless::Function
Properties:
Expand Down Expand Up @@ -194,16 +159,10 @@ Outputs:
HelloWorldApi:
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
HelloWorldFunction:
Description: "Hello World Lambda Function ARN"
Value: !GetAtt HelloWorldFunction.Arn

HelloWorldStreamApi:
Description: "API Gateway endpoint URL for Prod stage for Hello World stream function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hellostream/"
HelloWorldStreamFunction:
Description: "Hello World Stream Lambda Function ARN"
Value: !GetAtt HelloWorldStreamFunction.Arn

HelloWorldParamsApi:
Description: "API Gateway endpoint URL for Prod stage for Hello World params function"
Expand Down