Skip to content

Commit

Permalink
missed a file
Browse files Browse the repository at this point in the history
  • Loading branch information
iankhou committed Feb 19, 2025
1 parent 5b10bde commit d62ac6d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/aws-cdk/lib/api/bootstrap/bootstrap-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class Bootstrapper {
constructor(
private readonly source: BootstrapSource = { source: 'default' },
private readonly msg: IoMessaging,
private readonly toolkitStackName: string = DEFAULT_TOOLKIT_STACK_NAME,
) {}

public bootstrapEnvironment(
Expand Down Expand Up @@ -66,8 +67,7 @@ export class Bootstrapper {
throw new ToolkitError('--qualifier can only be passed for the modern bootstrap experience.');
}

const toolkitStackName = options.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
const current = await BootstrapStack.lookup(sdkProvider, environment, toolkitStackName, this.msg);
const current = await BootstrapStack.lookup(sdkProvider, environment, this.toolkitStackName, this.msg);
return current.update(
await this.loadTemplate(params),
{},
Expand All @@ -91,8 +91,7 @@ export class Bootstrapper {

const bootstrapTemplate = await this.loadTemplate();

const toolkitStackName = options.toolkitStackName ?? DEFAULT_TOOLKIT_STACK_NAME;
const current = await BootstrapStack.lookup(sdkProvider, environment, toolkitStackName, this.msg);
const current = await BootstrapStack.lookup(sdkProvider, environment, this.toolkitStackName, this.msg);
const partition = await current.partition();

if (params.createCustomerMasterKey !== undefined && params.kmsKeyId) {
Expand Down

0 comments on commit d62ac6d

Please sign in to comment.