Skip to content

Commit

Permalink
use toolkit's toolkitStackName
Browse files Browse the repository at this point in the history
  • Loading branch information
iankhou committed Feb 19, 2025
1 parent e49ad7d commit 5d0f33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/@aws-cdk/toolkit-lib/lib/actions/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Tag, StringWithoutPlaceholders } from '../../api/aws-cdk';
* Options for the bootstrapEnvironment operation(s)
*/
export interface BootstrapOptions {
readonly toolkitStackName?: string;
readonly roleArn?: StringWithoutPlaceholders;
readonly parameters?: BootstrappingParameters;
readonly force?: boolean;
Expand Down Expand Up @@ -134,4 +133,4 @@ export interface BootstrappingParameters {
readonly customPermissionsBoundary?: string;
}

export type BootstrapSource = { source: 'legacy' } | { source: 'default' } | { source: 'custom'; templateFile: string };
export type BootstrapSource = { source: 'legacy' } | { source: 'default' } | { source: 'custom'; templateFile: string };
3 changes: 2 additions & 1 deletion packages/@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export class Toolkit extends CloudAssemblySourceBuilder implements AsyncDisposab
const bootstrapTimer = Timer.start();

try {
const bootstrapResult = await bootstrapper.bootstrapEnvironment(environment, sdkProvider, options);
const { toolkitStackName } = this;
const bootstrapResult = await bootstrapper.bootstrapEnvironment(environment, sdkProvider, { ...options, toolkitStackName });
const message = bootstrapResult.noOp
? ` ✅ ${environment.name} (no changes)`
: ` ✅ ${environment.name}`;
Expand Down

0 comments on commit 5d0f33d

Please sign in to comment.