Skip to content

Commit c3744ae

Browse files
docs: add note about stored context when looking up VPC AZs (#25446)
Adding this note to be explicitly clear Closes #16250 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b20b1f2 commit c3744ae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/aws-cdk-lib/aws-ec2/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ and *account* of the Stack containing the VPC. If the [region and account are
7575
specified](https://docs.aws.amazon.com/cdk/latest/guide/environments.html) on
7676
the Stack, the CLI will [look up the existing Availability
7777
Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#using-regions-availability-zones-describe)
78-
and get an accurate count. If region and account are not specified, the stack
78+
and get an accurate count. The result of this operation will be written to a file
79+
called `cdk.context.json`. You must commit this file to source control so
80+
that the lookup values are available in non-privileged environments such
81+
as CI build steps, and to ensure your template builds are repeatable.
82+
83+
84+
If region and account are not specified, the stack
7985
could be deployed anywhere and it will have to make a safe choice, limiting
8086
itself to 2 Availability Zones.
8187

0 commit comments

Comments
 (0)