From 7a433bf647bac214a33f73be447782444d574bbf Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Sat, 2 Nov 2024 20:55:39 -0600 Subject: [PATCH] docs: add readme docs --- packages/aws-cdk-lib/aws-ec2/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/aws-cdk-lib/aws-ec2/README.md b/packages/aws-cdk-lib/aws-ec2/README.md index bcc050b333be3..92b5c855bead6 100644 --- a/packages/aws-cdk-lib/aws-ec2/README.md +++ b/packages/aws-cdk-lib/aws-ec2/README.md @@ -1538,6 +1538,19 @@ const host = new ec2.BastionHostLinux(this, 'BastionHost', { }); ``` +It's recommended to set the `@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault` +[feature flag](https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html) to `true` to use Amazon Linux 2023 as the +bastion host AMI. Without this flag set, the bastion host will default to Amazon Linux 2, which will be unsupported in +June 2025. + +```json +{ + "context": { + "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": true + } +} +``` + ### Placement Group Specify `placementGroup` to enable the placement group support: