@@ -944,22 +944,30 @@ or future deployments to this environment will fail. If you want to upgrade
944
944
the bootstrap stack to a newer version, do that by updating it in-place.
945
945
946
946
> This library requires the * modern* bootstrapping stack which has
947
- > been updated specifically to support cross-account continuous delivery. Starting,
948
- > in CDK v2 this new bootstrapping stack will become the default, but for now it is still
949
- > opt-in.
947
+ > been updated specifically to support cross-account continuous delivery.
950
948
>
951
- > The commands below assume you are running ` cdk bootstrap ` in a directory
952
- > where ` cdk.json ` contains the ` "@aws-cdk/core:newStyleStackSynthesis": true `
953
- > setting in its context, which will switch to the new bootstrapping stack
954
- > automatically.
949
+ > If you are using CDKv2, you do not need to do anything else. Modern
950
+ > bootstrapping and modern stack synthesis (also known as "default stack
951
+ > synthesis") is the default.
955
952
>
956
- > If run from another directory, be sure to run the bootstrap command with
957
- > the environment variable ` CDK_NEW_BOOTSTRAP=1 ` set.
953
+ > If you are using CDKv1, you need to opt in to modern bootstrapping and
954
+ > modern stack synthesis using a feature flag. Make sure ` cdk.json ` includes:
955
+ >
956
+ > ``` json
957
+ > {
958
+ > "context": {
959
+ > "@aws-cdk/core:newStyleStackSynthesis": true
960
+ > }
961
+ > }
962
+ > ```
963
+ >
964
+ > And be sure to run `cdk bootstrap` in the same directory as the `cdk.json`
965
+ > file.
958
966
959
967
To bootstrap an environment for provisioning the pipeline:
960
968
961
969
```console
962
- $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \
970
+ $ npx cdk bootstrap \
963
971
[--profile admin-profile-1 ] \
964
972
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
965
973
aws://111111111111/us-east-1
@@ -969,7 +977,7 @@ To bootstrap a different environment for deploying CDK applications into using
969
977
a pipeline in account ` 111111111111 ` :
970
978
971
979
``` console
972
- $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \
980
+ $ npx cdk bootstrap \
973
981
[--profile admin-profile-2] \
974
982
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
975
983
--trust 11111111111 \
@@ -980,7 +988,7 @@ If you only want to trust an account to do lookups (e.g, when your CDK applicati
980
988
` Vpc.fromLookup() ` call), use the option ` --trust-for-lookup ` :
981
989
982
990
``` console
983
- $ env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \
991
+ $ npx cdk bootstrap \
984
992
[--profile admin-profile-2] \
985
993
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
986
994
--trust-for-lookup 11111111111 \
0 commit comments