Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 4c9c3b5

Browse files
authored
Merge pull request #213 from nmoutschen/fix-nodejs610
Bump AWS Lambda functions version to NodeJS 8.10
2 parents a5f6f77 + ea2ab77 commit 4c9c3b5

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

MultiRegion/1_API/wild-rydes-api-failover-region.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Transform: AWS::Serverless-2016-10-31
33
Description: SXR API Stack for failover region.
44

55
Resources:
6-
6+
77
TicketServiceAPI:
88
Type: AWS::Serverless::Api
99
Properties:
@@ -95,12 +95,12 @@ Resources:
9595
passthroughBehavior: "when_no_match"
9696
type: "mock"
9797
swagger: '2.0'
98-
98+
9999
TicketGetFunction:
100100
Type: AWS::Serverless::Function
101101
Properties:
102102
Handler: tickets-get.handler
103-
Runtime: nodejs6.10
103+
Runtime: nodejs8.10
104104
FunctionName: TicketGetFunction
105105
Policies:
106106
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -121,12 +121,12 @@ Resources:
121121
Path: /ticket
122122
Method: get
123123
RestApiId: !Ref TicketServiceAPI
124-
124+
125125
TicketPostFunction:
126126
Type: AWS::Serverless::Function
127127
Properties:
128128
Handler: tickets-post.handler
129-
Runtime: nodejs6.10
129+
Runtime: nodejs8.10
130130
FunctionName: TicketPostFunction
131131
Policies:
132132
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -146,12 +146,12 @@ Resources:
146146
Path: /ticket
147147
Method: post
148148
RestApiId: !Ref TicketServiceAPI
149-
149+
150150
HealthFunction:
151151
Type: AWS::Serverless::Function
152152
Properties:
153153
Handler: health-check.handler
154-
Runtime: nodejs6.10
154+
Runtime: nodejs8.10
155155
FunctionName: SXRHealthCheckFunction
156156
Policies:
157157
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -172,7 +172,7 @@ Resources:
172172
Path: /health
173173
Method: get
174174
RestApiId: !Ref TicketServiceAPI
175-
175+
176176
Outputs:
177177
ApiUrl:
178178
Description: URL of your API endpoint

MultiRegion/1_API/wild-rydes-api-primary-region.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Transform: AWS::Serverless-2016-10-31
33
Description: SXR API Stack for failover region.
44

55
Resources:
6-
6+
77
TicketServiceAPI:
88
Type: AWS::Serverless::Api
99
Properties:
@@ -95,12 +95,12 @@ Resources:
9595
passthroughBehavior: "when_no_match"
9696
type: "mock"
9797
swagger: '2.0'
98-
98+
9999
TicketGetFunction:
100100
Type: AWS::Serverless::Function
101101
Properties:
102102
Handler: tickets-get.handler
103-
Runtime: nodejs6.10
103+
Runtime: nodejs8.10
104104
FunctionName: TicketGetFunction
105105
Policies:
106106
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -121,12 +121,12 @@ Resources:
121121
Path: /ticket
122122
Method: get
123123
RestApiId: !Ref TicketServiceAPI
124-
124+
125125
TicketPostFunction:
126126
Type: AWS::Serverless::Function
127127
Properties:
128128
Handler: tickets-post.handler
129-
Runtime: nodejs6.10
129+
Runtime: nodejs8.10
130130
FunctionName: TicketPostFunction
131131
Policies:
132132
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -146,12 +146,12 @@ Resources:
146146
Path: /ticket
147147
Method: post
148148
RestApiId: !Ref TicketServiceAPI
149-
149+
150150
HealthFunction:
151151
Type: AWS::Serverless::Function
152152
Properties:
153153
Handler: health-check.handler
154-
Runtime: nodejs6.10
154+
Runtime: nodejs8.10
155155
FunctionName: SXRHealthCheckFunction
156156
Policies:
157157
- AWSLambdaDynamoDBExecutionRole #managed policy
@@ -172,7 +172,7 @@ Resources:
172172
Path: /health
173173
Method: get
174174
RestApiId: !Ref TicketServiceAPI
175-
175+
176176
DynamoDBTicketTable:
177177
Type: AWS::DynamoDB::Table
178178
Properties:

WebApplication/5_OAuth/prerequisites.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -332,45 +332,45 @@ Resources:
332332
-
333333
AttributeName: RideId
334334
KeyType: HASH
335-
ProvisionedThroughput:
335+
ProvisionedThroughput:
336336
ReadCapacityUnits: 5
337337
WriteCapacityUnits: 5
338338

339339
RequestUnicornExecutionRole:
340340
Type: AWS::IAM::Role
341-
Properties:
341+
Properties:
342342
RoleName: WildRydesLambda
343-
AssumeRolePolicyDocument:
343+
AssumeRolePolicyDocument:
344344
Version: 2012-10-17
345-
Statement:
346-
-
345+
Statement:
346+
-
347347
Effect: Allow
348-
Principal:
349-
Service:
348+
Principal:
349+
Service:
350350
- lambda.amazonaws.com
351-
Action:
351+
Action:
352352
- "sts:AssumeRole"
353353
Path: "/wildrydes/"
354354
ManagedPolicyArns:
355355
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
356-
Policies:
357-
-
356+
Policies:
357+
-
358358
PolicyName: PutRidePolicy
359-
PolicyDocument:
359+
PolicyDocument:
360360
Version: 2012-10-17
361-
Statement:
362-
-
361+
Statement:
362+
-
363363
Effect: Allow
364-
Action:
364+
Action:
365365
- dynamodb:PutItem
366366
- dynamodb:Scan
367367
Resource: !GetAtt RidesTable.Arn
368-
368+
369369
RequestUnicornFunction:
370370
Type: AWS::Lambda::Function
371371
Properties:
372372
FunctionName: RequestUnicorn
373-
Runtime: nodejs6.10
373+
Runtime: nodejs8.10
374374
Role: !GetAtt RequestUnicornExecutionRole.Arn
375375
Timeout: 5
376376
MemorySize: 128
@@ -529,7 +529,7 @@ Resources:
529529
statusCode: 200
530530
responseParameters:
531531
method.response.header.Access-Control-Allow-Origin: "'*'"
532-
uri:
532+
uri:
533533
Fn::Join:
534534
- ""
535535
- - "arn:aws:apigateway:"
@@ -590,7 +590,7 @@ Resources:
590590
Properties:
591591
Description: Prod deployment for wild Rydes API
592592
RestApiId: !Ref WildRydesApi
593-
StageName: prod
593+
StageName: prod
594594

595595
WildRydesFunctionPermissions:
596596
Type: AWS::Lambda::Permission
@@ -622,7 +622,7 @@ Resources:
622622
- ".execute-api."
623623
- !Ref AWS::Region
624624
- ".amazonaws.com/prod"
625-
625+
626626
UpdateApiConfigFunction:
627627
Type: AWS::Lambda::Function
628628
DependsOn: UpdateCognitoConfigFunction

0 commit comments

Comments
 (0)