Skip to content

Commit

Permalink
bump bootstrap stack version
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel committed Jun 2, 2020
1 parent 82a4c30 commit 0d49992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import { IStackSynthesizer } from './types';

export const BOOTSTRAP_QUALIFIER_CONTEXT = '@aws-cdk/core:bootstrapQualifier';

/**
* The minimum bootstrap stack version required by this app.
*/
const MIN_BOOTSTRAP_STACK_VERSION = 2;

/**
* Configuration properties for DefaultStackSynthesizer
*/
Expand Down Expand Up @@ -289,7 +294,7 @@ export class DefaultStackSynthesizer implements IStackSynthesizer {
assumeRoleArn: this._deployRoleArn,
cloudFormationExecutionRoleArn: this._cloudFormationExecutionRoleArn,
stackTemplateAssetObjectUrl: templateManifestUrl,
requiresBootstrapStackVersion: 1,
requiresBootstrapStackVersion: MIN_BOOTSTRAP_STACK_VERSION,
}, [artifactId]);
}

Expand Down Expand Up @@ -371,7 +376,7 @@ export class DefaultStackSynthesizer implements IStackSynthesizer {
type: cxschema.ArtifactType.ASSET_MANIFEST,
properties: {
file: manifestFile,
requiresBootstrapStackVersion: 1,
requiresBootstrapStackVersion: MIN_BOOTSTRAP_STACK_VERSION,
},
});

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Outputs:
BootstrapVersion:
Description: The version of the bootstrap resources that are currently mastered
in this stack
Value: '1'
Value: '2'
Export:
Name:
Fn::Sub: CdkBootstrap-${Qualifier}-Version

0 comments on commit 0d49992

Please sign in to comment.