Skip to content

Commit

Permalink
feat: Update framework and runtime versions (serverless#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
meddy672 authored Mar 29, 2023
1 parent ad56e06 commit 0c52338
Show file tree
Hide file tree
Showing 125 changed files with 262 additions and 1,539 deletions.
2 changes: 1 addition & 1 deletion aws-golang-http-get-post/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ service: goservice # NOTE: update this with your service name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
frameworkVersion: ">=2.24.0"
frameworkVersion: "3"

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-golang-rest-api-with-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
app: aws-golang-rest-api-with-dynamodb
service: aws-golang-rest-api-with-dynamodb

frameworkVersion: ">=2.24.0"
frameworkVersion: "3"

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-golang-s3-file-replicator/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
service: aws-golang-s3-file-replicator
frameworkVersion: ">=2.24.0"
frameworkVersion: "3"

custom:
inputBucket: replicator-input-101
Expand Down
2 changes: 1 addition & 1 deletion aws-golang-stream-kinesis-to-elasticsearch/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service: aws-golang-kinesis-to-elasticsearch

frameworkVersion: ">=1.28.0 <2.0.0"
frameworkVersion: "3"

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-java-simple-http-endpoint/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
service: aws-java-simple-http-endpoint
frameworkVersion: '2'
frameworkVersion: '3'

provider:
name: aws
Expand Down
2 changes: 1 addition & 1 deletion aws-multiple-runtime/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider:

functions:
hello:
runtime: python3.6
runtime: python3.9
events:
- httpApi:
method: get
Expand Down
4 changes: 2 additions & 2 deletions aws-node-alexa-skill/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
service: aws-node-alexa-skill

frameworkVersion: ">=1.4.0 <2.0.0"
frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x

functions:
luckyNumber:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-auth0-cognito-custom-authorizers-api/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

service: aws-node-auth0-cognito-custom-authorizers-api

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x

functions:
publicEndpoint:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-auth0-custom-authorizers-api/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

service: aws-custom-authorizer-auth0

frameworkVersion: "3"

plugins:
- serverless-offline

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
region: us-west-2
environment:
AUTH0_CLIENT_ID: ${file(./secrets.json):AUTH0_CLIENT_ID}
Expand Down
4 changes: 3 additions & 1 deletion aws-node-dynamic-image-resizer/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
service:
name: ${self:custom.serviceName}

frameworkVersion: "3"

plugins:
- serverless-offline
- serverless-webpack

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
profile: dev-fii

usagePlan:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-dynamodb-backup/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
service: serverless-dynamodb-backup

frameworkVersion: "3"

custom:
bucket: EXAMPLE
dynamoDBTableName: "${opt:stage, self:provider.stage}_EXAMPLE"
prefix: FOO

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
stage: staging
iam:
role:
Expand Down
4 changes: 2 additions & 2 deletions aws-node-env-variables-encrypted-in-a-file/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
service: env-variables-encrypted-in-a-file

frameworkVersion: ">=1.2.0 <2.0.0"
frameworkVersion: "3"

plugins:
- serverless-secrets-plugin

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
stage: dev

custom:
Expand Down
4 changes: 2 additions & 2 deletions aws-node-env-variables/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
service: function-with-environment-variables

frameworkVersion: ">=1.2.0 <2.0.0"
frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
environment:
EMAIL_SERVICE_API_KEY: KEYEXAMPLE1234

Expand Down
4 changes: 2 additions & 2 deletions aws-node-fetch-file-and-store-in-s3/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
service: fetch-file-and-store-in-s3

frameworkVersion: ">=2.24.0"
frameworkVersion: "3"

custom:
bucket: <your-bucket-name>

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
stage: dev
region: us-west-1
iam:
Expand Down
6 changes: 3 additions & 3 deletions aws-node-fullstack/backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ tenant: ac360 # Enter your tenant name here
app: enterprise # Enter your application name here
service: demo-email-form

frameworkVersion: '>=1.38.0 <2.0.0'
frameworkVersion: '3'

provider:
name: aws
runtime: nodejs10.x
runtime: nodejs18.x
# credentials: ${secrets:aws-enterprise} # Enter an AWS Secret like this, after you create it in the Dashboard.

functions:
Expand All @@ -18,7 +18,7 @@ functions:
method: post
cors: true

plugins:
# plugins:
# - serverless-finch # If you want to deploy the front-end uncomment this and the "custom" object below

# custom:
Expand Down
4 changes: 2 additions & 2 deletions aws-node-function-compiled-with-babel/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service: function-compiled-with-babel

frameworkVersion: ">=1.1.0 <2.0.0"
frameworkVersion: "3"

custom:
babelPresets:
Expand All @@ -11,7 +11,7 @@ plugins:

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x

functions:
hello:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-github-check/serverless.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
service: serverless-github-check

frameworkVersion: "3"

plugins:
- serverless-webpack
- serverless-offline
Expand All @@ -11,7 +13,7 @@ custom:

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
profile: personal
region: eu-west-1
environment:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-github-webhook-listener/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
service: github-webhook-listener

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
environment:
GITHUB_WEBHOOK_SECRET: REPLACE-WITH-YOUR-SECRET-HERE

Expand Down
4 changes: 3 additions & 1 deletion aws-node-graphql-and-rds/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
service: ${file(./secrets.json):ApiName}

frameworkVersion: "3"

provider:
name: aws
region: us-east-1
stage: dev
memorySize: 256
runtime: nodejs12.x
runtime: nodejs18.x
iam:
role: LambdaRole
environment:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-graphql-api-with-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
service: graphql-api

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs10.x
runtime: nodejs18.x
environment:
DYNAMODB_TABLE: ${self:service}-${self:provider.stage}
iam:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-heroku-postgres/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
service: aws-lambda-and-heroku-postgres # NOTE: update this with your service name

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
stage: dev

functions:
Expand Down
5 changes: 3 additions & 2 deletions aws-node-http-api-dynamodb-local/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
service: serverless-http-api-dynamodb-local
frameworkVersion: '2'

frameworkVersion: "3"

plugins:
- serverless-dynamodb-local
Expand All @@ -20,7 +21,7 @@ custom:

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
lambdaHashingVersion: '20201221'
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
5 changes: 3 additions & 2 deletions aws-node-http-api-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
service: serverless-http-api-dynamodb
frameworkVersion: '2'

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
lambdaHashingVersion: '20201221'
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
5 changes: 3 additions & 2 deletions aws-node-http-api-mongodb/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
service: serverless-http-api-mongodb
frameworkVersion: '2'

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
lambdaHashingVersion: 20201221
httpApi:
cors: true
Expand Down
5 changes: 3 additions & 2 deletions aws-node-http-api-typescript-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
service: serverless-http-api-typescript-dynamodb
frameworkVersion: '2'

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
lambdaHashingVersion: '20201221'
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
2 changes: 1 addition & 1 deletion aws-node-http-api-typescript/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: '3'

provider:
name: aws
runtime: nodejs14.x
runtime: nodejs18.x

functions:
hello:
Expand Down
4 changes: 2 additions & 2 deletions aws-node-iot-event/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
service: aws-node-iot-event

frameworkVersion: ">=1.5.0 <2.0.0"
frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x

functions:
log:
Expand Down
4 changes: 3 additions & 1 deletion aws-node-mongodb-atlas/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
service: my-service # NOTE: update this with your service name

frameworkVersion: "3"

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x

functions:
hello:
Expand Down
3 changes: 2 additions & 1 deletion aws-node-oauth-dropbox-api/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
service: dropbox
frameworkVersion: "3"
provider:
profile: personal
runtime: nodejs12.x
runtime: nodejs18.x
name: aws
region: ap-south-1
timeout: 60
Expand Down
3 changes: 2 additions & 1 deletion aws-node-puppeteer/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
service: scrapper-lambda
frameworkVersion: "3"
provider:
name: aws
profile: <your aws profile>
runtime: nodejs12.x
runtime: nodejs18.x

plugins:
- serverless-offline
Expand Down
Loading

0 comments on commit 0c52338

Please sign in to comment.