Skip to content

Commit 30fa9b6

Browse files
mfogelbboure
authored andcommitted
Sanitize function name
1 parent b8fe475 commit 30fa9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ class ServerlessAppsyncPlugin {
875875
Type: 'AWS::AppSync::FunctionConfiguration',
876876
Properties: {
877877
ApiId: { 'Fn::GetAtt': [logicalIdGraphQLApi, 'ApiId'] },
878-
Name: tpl.name,
878+
Name: this.getCfnName(tpl.name),
879879
DataSourceName: { 'Fn::GetAtt': [logicalIdDataSource, 'Name'] },
880880
RequestMappingTemplate: this.processTemplate(
881881
requestTemplate,

0 commit comments

Comments
 (0)