Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MachineImages.latestAmazonLinux is depreciated #680

Open
TheBrosky1899 opened this issue Jun 9, 2023 · 1 comment
Open

MachineImages.latestAmazonLinux is depreciated #680

TheBrosky1899 opened this issue Jun 9, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@TheBrosky1899
Copy link

TheBrosky1899 commented Jun 9, 2023

During stack synth:

[WARNING] aws-cdk-lib.aws_ec2.MachineImage#latestAmazonLinux is deprecated.
  use MachineImage.latestAmazonLinux2 instead
  This API will be removed in the next major release.
Searching for AMI in 753334223818:us-east-1
[WARNING] aws-cdk-lib.aws_ec2.MachineImage#latestAmazonLinux is deprecated.
  use MachineImage.latestAmazonLinux2 instead
  This API will be removed in the next major release.
@jeffsegal
Copy link

Can work around this with:

new GitlabRunnerAutoscaling(stack, "GitlabRunner", {
  manager: {
    machineImage: MachineImage.latestAmazonLinux2(),
  },
  runners: [
    {
      machineImage: MachineImage.latestAmazonLinux2(),
    },
  ],
});

@pflorek pflorek added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants