Hawxy/cdk-tailscale-bastion

MachineImage#latestAmazonLinux is deprecated

aceat64 opened this issue · 2 comments

I'm using CDK version 2.66.1, it is generating the following warnings about the Tailscale bastions:

[WARNING] aws-cdk-lib.aws_ec2.MachineImage#latestAmazonLinux is deprecated.
  use MachineImage.latestAmazonLinux2 instead
  This API will be removed in the next major release.

I believe this is because the version of CDK (2.20.0) used by this package defaults to using MachineImage.latestAmazonLinux(). Newer versions now default to MachineImage.latestAmazonLinux2(), but this is not available in 2.20.0 of CDK.

Hawxy commented

Am aware of this and was planning to deal with it sometime soon, will try to get something out shortly. This would be a v2 release as changing the image - I have to make the change explicitly as just updating CDK isn't enough - is a breaking change and will force the bastion to be recreated.

Edit: Looks like 2023 image has problems :( tailscale/tailscale#7816

Hawxy commented

Fixed in #17/v2.0