diff --git a/lib/plugins/aws/deploy/compile/functions/index.js b/lib/plugins/aws/deploy/compile/functions/index.js index 3d4ff6b66..5a40ae1a2 100644 --- a/lib/plugins/aws/deploy/compile/functions/index.js +++ b/lib/plugins/aws/deploy/compile/functions/index.js @@ -142,7 +142,7 @@ class AwsCompileFunctions { hash.end(); newVersion.Properties.CodeSha256 = hash.read(); - newVersion.Properties.FunctionName = { 'Ref': functionLogicalId }; + newVersion.Properties.FunctionName = { Ref: functionLogicalId }; const normalSha = newVersion.Properties.CodeSha256.replace(/[^0-9a-z]/gi, ''); @@ -168,7 +168,7 @@ class AwsCompileFunctions { newOutputObject); const newVersionOutput = this.cfOutputLatestVersionTemplate(); - newVersionOutput.Value = { 'Ref': versionLogicalId }; + newVersionOutput.Value = { Ref: versionLogicalId }; _.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Outputs, { [`${functionLogicalId}QualifiedArn`]: newVersionOutput,