pepperize / cdk-autoscaling-gitlab-runner

Execute Gitlab jobs on auto-scaled EC2 instances using the Docker Machine executor.
MIT License
29 stars 8 forks source link

MachineImages.latestAmazonLinux is depreciated #680

Open TheBrosky1899 opened 1 year ago

TheBrosky1899 commented 1 year ago

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 commented 5 months ago

Can work around this with:

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