@@ -112,19 +112,22 @@ export class DeployWizard extends Wizard<DeployParams> {
112112 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
113113 }
114114 )
115- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
115+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
116116 showWhen : ( { paramsSource } ) =>
117117 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
118118 } )
119119 this . form . bucketName . bindPrompter (
120- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
120+ ( { region } ) =>
121+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
121122 {
122123 showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
123124 }
124125 )
125126 } else if ( this . arg && this . arg . regionCode ) {
126127 // "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+ )
128131 this . form . projectRoot . setDefault ( ( { template } ) => getProjectRoot ( template ) )
129132 this . form . paramsSource . bindPrompter ( async ( { projectRoot } ) => {
130133 const existValidSamConfig : boolean | undefined = await validateSamDeployConfig ( projectRoot )
@@ -139,12 +142,13 @@ export class DeployWizard extends Wizard<DeployParams> {
139142 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
140143 }
141144 )
142- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
145+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
143146 showWhen : ( { paramsSource } ) =>
144147 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
145148 } )
146149 this . form . bucketName . bindPrompter (
147- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
150+ ( { region } ) =>
151+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
148152 {
149153 showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
150154 }
@@ -173,20 +177,23 @@ export class DeployWizard extends Wizard<DeployParams> {
173177 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
174178 }
175179 )
176- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
180+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
177181 showWhen : ( { paramsSource } ) =>
178182 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
179183 } )
180184 this . form . bucketName . bindPrompter (
181- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
185+ ( { region } ) =>
186+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
182187 {
183188 showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
184189 }
185190 )
186191 this . form . projectRoot . setDefault ( ( ) => getProjectRoot ( templateItem ) )
187192 } else {
188193 // "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+ )
190197 this . form . projectRoot . setDefault ( ( { template } ) => getProjectRoot ( template ) )
191198 this . form . paramsSource . bindPrompter ( async ( { projectRoot } ) => {
192199 const existValidSamConfig : boolean | undefined = await validateSamDeployConfig ( projectRoot )
@@ -204,12 +211,13 @@ export class DeployWizard extends Wizard<DeployParams> {
204211 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
205212 }
206213 )
207- this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( ) , {
214+ this . form . bucketSource . bindPrompter ( ( ) => createBucketSourcePrompter ( samDeployUrl ) , {
208215 showWhen : ( { paramsSource } ) =>
209216 paramsSource === ParamsSource . Specify || paramsSource === ParamsSource . SpecifyAndSave ,
210217 } )
211218 this . form . bucketName . bindPrompter (
212- ( { region } ) => createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey ) ,
219+ ( { region } ) =>
220+ createBucketNamePrompter ( new DefaultS3Client ( region ! ) , deployMementoRootKey , samDeployUrl ) ,
213221 {
214222 showWhen : ( { bucketSource } ) => bucketSource === BucketSource . UserProvided ,
215223 }
0 commit comments