From cb6f438b22332d14b994ca866aa74d55c974a60f Mon Sep 17 00:00:00 2001 From: Kaustav Ghosh Date: Tue, 28 May 2019 23:17:41 -0700 Subject: [PATCH] fix: stringify region in function Cloudformation file (#1536) --- .../lambda-cloudformation-template.json.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-category-function/provider-utils/awscloudformation/cloudformation-templates/lambda-cloudformation-template.json.ejs b/packages/amplify-category-function/provider-utils/awscloudformation/cloudformation-templates/lambda-cloudformation-template.json.ejs index 6b00757598b..d225e43e2f8 100644 --- a/packages/amplify-category-function/provider-utils/awscloudformation/cloudformation-templates/lambda-cloudformation-template.json.ejs +++ b/packages/amplify-category-function/provider-utils/awscloudformation/cloudformation-templates/lambda-cloudformation-template.json.ejs @@ -54,7 +54,7 @@ } ] }, - "Environment": {"Variables" : { "ENV": {"Ref": "env"}, "REGION": { "Ref": 'AWS::Region'}<% if (props.resourceProperties && props.resourceProperties.length > 0) { %>,<%- props.resourceProperties%> <% } %>}}, + "Environment": {"Variables" : { "ENV": {"Ref": "env"}, "REGION": { "Ref": "AWS::Region"}<% if (props.resourceProperties && props.resourceProperties.length > 0) { %>,<%- props.resourceProperties%> <% } %>}}, "Role": { "Fn::GetAtt" : ["LambdaExecutionRole", "Arn"] }, "Runtime": "nodejs8.10", "Timeout": "25"