-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
Today, the excellent BastionHostLinux
construct defaults to an Amazon Linux 2 base image:
aws-cdk/packages/aws-cdk-lib/aws-ec2/lib/bastion-host.ts
Lines 63 to 69 in fac4a9c
/** | |
* The machine image to use, assumed to have SSM Agent preinstalled. | |
* | |
* @default - An Amazon Linux 2 image which is kept up-to-date automatically (the instance | |
* may be replaced on every deployment) and already has SSM Agent installed. | |
*/ | |
readonly machineImage?: IMachineImage; |
However, Amazon Linux 2 will hit end of life in June 2025.
I see that I can pass my own MachineImage
, but it'd be nice if there was a first-class flag to opt-in.
Use Case
It'd be nice to still be able to use BastionHostLinux
, but use the newer Amazon Linux so I don't have to worry about upgrading next year.
Proposed Solution
It'd probably be a good idea to introduce a new feature flag and plan to automatically opt people into Amazon Linux 2023 on the next major version.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.132.1
Environment details (OS name and version, etc.)
macOS sonoma
mikejgray, jjrawlins, mbonig and a-bigelow
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2