Skip to content

Commit

Permalink
Sanitize function name
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel authored and bboure committed May 31, 2020
1 parent b8fe475 commit 30fa9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ class ServerlessAppsyncPlugin {
Type: 'AWS::AppSync::FunctionConfiguration',
Properties: {
ApiId: { 'Fn::GetAtt': [logicalIdGraphQLApi, 'ApiId'] },
Name: tpl.name,
Name: this.getCfnName(tpl.name),
DataSourceName: { 'Fn::GetAtt': [logicalIdDataSource, 'Name'] },
RequestMappingTemplate: this.processTemplate(
requestTemplate,
Expand Down

0 comments on commit 30fa9b6

Please sign in to comment.