@@ -112,19 +112,22 @@ export class DeployWizard extends Wizard<DeployParams> {
112
112
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
113
113
}
114
114
)
115
- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
115
+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
116
116
showWhen : ( { paramsSource } ) =>
117
117
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
118
118
} )
119
119
this . form . bucketName . bindPrompter (
120
- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
120
+ ( { region } ) =>
121
+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
121
122
{
122
123
showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
123
124
}
124
125
)
125
126
} else if ( this . arg && this . arg . regionCode ) {
126
127
// "Deploy" command was invoked on a regionNode.
127
- this . form . template . bindPrompter ( ( ) => createTemplatePrompter ( this . registry , deployMementoRootKey ) )
128
+ this . form . template . bindPrompter ( ( ) =>
129
+ createTemplatePrompter ( this . registry , deployMementoRootKey , samDeployUrl )
130
+ )
128
131
this . form . projectRoot . setDefault ( ( { template } ) => getProjectRoot ( template ) )
129
132
this . form . paramsSource . bindPrompter ( async ( { projectRoot } ) => {
130
133
const existValidSamConfig : boolean | undefined = await validateSamDeployConfig ( projectRoot )
@@ -139,12 +142,13 @@ export class DeployWizard extends Wizard<DeployParams> {
139
142
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
140
143
}
141
144
)
142
- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
145
+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
143
146
showWhen : ( { paramsSource } ) =>
144
147
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
145
148
} )
146
149
this . form . bucketName . bindPrompter (
147
- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
150
+ ( { region } ) =>
151
+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
148
152
{
149
153
showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
150
154
}
@@ -173,20 +177,23 @@ export class DeployWizard extends Wizard<DeployParams> {
173
177
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
174
178
}
175
179
)
176
- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
180
+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
177
181
showWhen : ( { paramsSource } ) =>
178
182
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
179
183
} )
180
184
this . form . bucketName . bindPrompter (
181
- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
185
+ ( { region } ) =>
186
+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
182
187
{
183
188
showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
184
189
}
185
190
)
186
191
this . form . projectRoot . setDefault ( ( ) => getProjectRoot ( templateItem ) )
187
192
} else {
188
193
// "Deploy" command was invoked on the command palette.
189
- this . form . template . bindPrompter ( ( ) => createTemplatePrompter ( this . registry , deployMementoRootKey ) )
194
+ this . form . template . bindPrompter ( ( ) =>
195
+ createTemplatePrompter ( this . registry , deployMementoRootKey , samDeployUrl )
196
+ )
190
197
this . form . projectRoot . setDefault ( ( { template } ) => getProjectRoot ( template ) )
191
198
this . form . paramsSource . bindPrompter ( async ( { projectRoot } ) => {
192
199
const existValidSamConfig : boolean | undefined = await validateSamDeployConfig ( projectRoot )
@@ -204,12 +211,13 @@ export class DeployWizard extends Wizard<DeployParams> {
204
211
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
205
212
}
206
213
)
207
- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
214
+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
208
215
showWhen : ( { paramsSource } ) =>
209
216
paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
210
217
} )
211
218
this . form . bucketName . bindPrompter (
212
- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
219
+ ( { region } ) =>
220
+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
213
221
{
214
222
showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
215
223
}
0 commit comments