Skip to content

Commit

Permalink
fix: upgraded nodejs from v8 to v10 & fixed validate lambda deploy st…
Browse files Browse the repository at this point in the history
…ate issue
  • Loading branch information
Chih-Ying committed Dec 25, 2019
1 parent 524a951 commit e18b1df
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/builtins/deploy-delegates/lambda-deployer/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Please solve this IAM role mismatch and re-deploy again.`);
return callback(`The current revisionId (The revision ID for Lambda ARN (${lambdaArn}) should be ${remoteRevisionId}, \
but found ${localRevisionId}. Please solve this revision mismatch and re-deploy again.`);
}
updatedDeployState = R.set(R.lensPath(['lambda', 'revisionId']), remoteRevisionId, currentRegionDeployState);
updatedDeployState = R.set(R.lensPath(['lambda', 'revisionId']), remoteRevisionId, updatedDeployState);
// 3. add lastModified
const lastModified = data.Configuration.LastModified;
updatedDeployState = R.set(R.lensPath(['lambda', 'lastModified']), lastModified, currentRegionDeployState);
updatedDeployState = R.set(R.lensPath(['lambda', 'lastModified']), lastModified, updatedDeployState);
callback(null, { updatedDeployState });
});
}
Expand Down
1 change: 0 additions & 1 deletion lib/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ module.exports.TEMPLATES = {
NodeJS: {
TEMPLATE_INDEX: 'https://ask-cli-static-content.s3-us-west-2.amazonaws.com/skill-templates/nodejs-templates.json',
LAMBDA_RUNTIME: [
'nodejs8.10',
'nodejs10.x'
]
},
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/model/regional-stack-file.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"S3Key": "endpoint.s3.key",
"S3ObjectVersion": "endpoint.s3.version"
},
"Runtime": "nodejs8.10",
"Runtime": "nodejs10.x",
"MemorySize": 512,
"Timeout": 60
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/model/regional-stack-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Resources:
S3Bucket: endpoint.s3.bucket
S3Key: endpoint.s3.key
S3ObjectVersion: endpoint.s3.version
Runtime: nodejs8.10
Runtime: nodejs10.x
MemorySize: 512
Timeout: 60
AlexaSkillFunctionEventPermission:
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/model/resources-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"skillInfrastructure": {
"type": "@ask-cli/cfn-deployer",
"userConfig": {
"runtime": "nodejs8.10",
"runtime": "nodejs10.x",
"handler": "index.handler",
"template": "./awsStacks/skill-infra.yaml",
"regionOverrides": {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/model/resources-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ profiles:
skillInfrastructure:
type: "@ask-cli/cfn-deployer"
userConfig:
runtime: nodejs8.10
runtime: nodejs10.x
handler: index.handler
template: "./awsStacks/skill-infra.yaml"
regionOverrides:
Expand Down

0 comments on commit e18b1df

Please sign in to comment.