@@ -8,7 +8,7 @@ async function build(command) {
8
8
const templateName = cmd . template ;
9
9
const template = templateParser . load ( templateName , true ) ;
10
10
if ( ! template ) {
11
- console . log ( `Template "${ templateName } " does not exist or could not be parsed.` ) ;
11
+ console . log ( `Template "${ templateName } " does not exist or could not be parsed. Please use the '--template <file-path>' option to use another file. ` ) ;
12
12
return ;
13
13
}
14
14
const compatibleSources = await getSources ( template ) ;
@@ -34,7 +34,7 @@ async function build(command) {
34
34
target = { type : type , arn : arn , name : type . split ( ":" ) [ 1 ] }
35
35
}
36
36
const targetConfig = supportedTypes . find ( p => p . Type === target . type ) ;
37
- const targetObj = await buildParametersForSide ( targetConfig . TargetSchemaName ) ;
37
+ const targetObj = await buildParametersForSide ( targetConfig . TargetSchemaName ) ;
38
38
const sourcePropertyName = sourceConfig . SourceSchemaName . replace ( "PipeSource" , "" ) ;
39
39
const targetPropertyName = targetConfig . TargetSchemaName . replace ( "PipeTarget" , "" ) ;
40
40
const pipeName = `${ source . name } To${ target . name } Pipe` ;
@@ -75,24 +75,7 @@ async function build(command) {
75
75
}
76
76
]
77
77
} ,
78
- Policies : [
79
- {
80
- PolicyName : "LogsPolicy" ,
81
- PolicyDocument : {
82
- Version : "2012-10-17" ,
83
- Statement : [
84
- {
85
- Effect : "Allow" ,
86
- Action : [
87
- "logs:CreateLogStream" ,
88
- "logs:CreateLogGroup" ,
89
- "logs:PutLogEvents" ] ,
90
- Resource : "*"
91
- } ,
92
- ] ,
93
- }
94
- }
95
- ]
78
+ Policies : [ ]
96
79
}
97
80
} ;
98
81
sourceConfig . SourcePolicy . Statement [ 0 ] . Resource = source . arn || JSON . parse ( JSON . stringify ( ( sourceConfig . SourcePolicy . Statement [ 0 ] . Resource || sourceConfig . ArnGetter ) ) . replace ( / # R E S O U R C E _ N A M E # / g, source . name ) ) ;
0 commit comments