Skip to content

Commit

Permalink
Merge pull request #65 from Learnspree/feature/shorten-lambda-functio…
Browse files Browse the repository at this point in the history
…n-names

Feature/shorten lambda function names
  • Loading branch information
Learnspree committed Feb 23, 2020
2 parents e1c175f + ef994eb commit 51d5ea2
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 101 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ Each target function will essentially be setup with two cloud-watch-batch based
enabled: false
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName: aws-empty-test-functions-dev-awsnodejs12x
targetFunctionName: aws-test-dev-awsnodejs12x
```

View "/aws-common/serverless.yml" to view the list of source cloud-watch-logs that are a trigger to measure performance of each target function deployed above. Example below for the node 12.x function:

```bash
events:
- cloudwatchLog:
logGroup: '/aws/lambda/aws-empty-test-functions-dev-awsnodejs12x'
logGroup: '/aws/lambda/aws-test-dev-awsnodejs12x'
filter: 'REPORT'
```

Expand Down
120 changes: 60 additions & 60 deletions aws-common/serverless.yml

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions aws-test/aws-burst-invoker/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-cold-burst
service: aws-test-cold-burst

custom:
# you can use rate() or cron() syntax
Expand All @@ -19,7 +19,7 @@ provider:
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource: "arn:aws:lambda:${self:provider.region}:*:function:aws-empty-test*"
Resource: "arn:aws:lambda:${self:provider.region}:*:function:aws-test*"

coldstart-param-reuse: &coldstart-param
runtime: python3.8
Expand All @@ -38,9 +38,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-go-${self:provider.stage}-aws-cold-empty-go
- aws-empty-test-functions-go-${self:provider.stage}-aws-cold-256-empty-go
- aws-empty-test-functions-go-${self:provider.stage}-aws-cold-512-empty-go
- aws-test-go-${self:provider.stage}-aws-cold-empty-go
- aws-test-go-${self:provider.stage}-aws-cold-256-empty-go
- aws-test-go-${self:provider.stage}-aws-cold-512-empty-go

awsdotnet2-coldstart:
<<: *coldstart-param
Expand All @@ -52,9 +52,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-dotnet-${self:provider.stage}-aws-cold-empty-dotnet21
- aws-empty-test-functions-dotnet-${self:provider.stage}-aws-cold-256-empty-dotnet21
- aws-empty-test-functions-dotnet-${self:provider.stage}-aws-cold-512-empty-dotnet21
- aws-test-dotnet-${self:provider.stage}-aws-cold-empty-dotnet21
- aws-test-dotnet-${self:provider.stage}-aws-cold-256-empty-dotnet21
- aws-test-dotnet-${self:provider.stage}-aws-cold-512-empty-dotnet21

awsjava8-coldstart:
<<: *coldstart-param
Expand All @@ -66,9 +66,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-java-${self:provider.stage}-aws-cold-empty-java8
- aws-empty-test-functions-java-${self:provider.stage}-aws-cold-256-empty-java8
- aws-empty-test-functions-java-${self:provider.stage}-aws-cold-512-empty-java8
- aws-test-java-${self:provider.stage}-aws-cold-empty-java8
- aws-test-java-${self:provider.stage}-aws-cold-256-empty-java8
- aws-test-java-${self:provider.stage}-aws-cold-512-empty-java8

awsjava11-coldstart:
<<: *coldstart-param
Expand All @@ -80,9 +80,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-java11-${self:provider.stage}-aws-cold-empty-java11
- aws-empty-test-functions-java11-${self:provider.stage}-aws-cold-256-empty-java11
- aws-empty-test-functions-java11-${self:provider.stage}-aws-cold-512-empty-java11
- aws-test-java11-${self:provider.stage}-aws-cold-empty-java11
- aws-test-java11-${self:provider.stage}-aws-cold-256-empty-java11
- aws-test-java11-${self:provider.stage}-aws-cold-512-empty-java11

awsnodejs12x-coldstart:
<<: *coldstart-param
Expand All @@ -94,9 +94,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-empty-nodejs12x
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-256-empty-nodejs12x
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-512-empty-nodejs12x
- aws-test-nodejs-${self:provider.stage}-aws-cold-empty-nodejs12x
- aws-test-nodejs-${self:provider.stage}-aws-cold-256-empty-nodejs12x
- aws-test-nodejs-${self:provider.stage}-aws-cold-512-empty-nodejs12x

awsnodejs10x-coldstart:
<<: *coldstart-param
Expand All @@ -108,9 +108,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-empty-nodejs10x
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-256-empty-nodejs10x
- aws-empty-test-functions-nodejs-${self:provider.stage}-aws-cold-512-empty-nodejs10x
- aws-test-nodejs-${self:provider.stage}-aws-cold-empty-nodejs10x
- aws-test-nodejs-${self:provider.stage}-aws-cold-256-empty-nodejs10x
- aws-test-nodejs-${self:provider.stage}-aws-cold-512-empty-nodejs10x

awspython36-coldstart:
<<: *coldstart-param
Expand All @@ -122,9 +122,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-empty-python36
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-256-empty-python36
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-512-empty-python36
- aws-test-python-${self:provider.stage}-aws-cold-empty-python36
- aws-test-python-${self:provider.stage}-aws-cold-256-empty-python36
- aws-test-python-${self:provider.stage}-aws-cold-512-empty-python36

awspython38-coldstart:
<<: *coldstart-param
Expand All @@ -136,9 +136,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-empty-python38
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-256-empty-python38
- aws-empty-test-functions-python-${self:provider.stage}-aws-cold-512-empty-python38
- aws-test-python-${self:provider.stage}-aws-cold-empty-python38
- aws-test-python-${self:provider.stage}-aws-cold-256-empty-python38
- aws-test-python-${self:provider.stage}-aws-cold-512-empty-python38

ruby25-coldstart:
<<: *coldstart-param
Expand All @@ -150,9 +150,9 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-empty-ruby25
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-256-empty-ruby25
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-512-empty-ruby25
- aws-test-ruby-${self:provider.stage}-aws-cold-empty-ruby25
- aws-test-ruby-${self:provider.stage}-aws-cold-256-empty-ruby25
- aws-test-ruby-${self:provider.stage}-aws-cold-512-empty-ruby25

ruby27-coldstart:
<<: *coldstart-param
Expand All @@ -164,6 +164,6 @@ functions:
input:
invokeCount: ${self:custom.coldStartBatchSize}
targetFunctionName:
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-empty-ruby27
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-256-empty-ruby27
- aws-empty-test-functions-ruby-${self:provider.stage}-aws-cold-512-empty-ruby27
- aws-test-ruby-${self:provider.stage}-aws-cold-empty-ruby27
- aws-test-ruby-${self:provider.stage}-aws-cold-256-empty-ruby27
- aws-test-ruby-${self:provider.stage}-aws-cold-512-empty-ruby27
2 changes: 1 addition & 1 deletion aws-test/aws-service-dotnetcore2/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-dotnet
service: aws-test-dotnet

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-go/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-go
service: aws-test-go

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-java/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-java
service: aws-test-java

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-java11/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-java11
service: aws-test-java11

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-nodejs/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-nodejs
service: aws-test-nodejs

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-python/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Config file for aws empty-test functions
#
service: aws-empty-test-functions-python
service: aws-test-python

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-test/aws-service-ruby/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Config file for aws empty-test functions - ruby
#
service: aws-empty-test-functions-ruby
service: aws-test-ruby

provider:
name: aws
Expand Down

0 comments on commit 51d5ea2

Please sign in to comment.