aws-autoscaling-gitlab-runner icon indicating copy to clipboard operation
aws-autoscaling-gitlab-runner copied to clipboard

Clarification on Manager Image

Open mikesiconolfi opened this issue 6 years ago • 4 comments

Im trying to deploy your aws template but not sure what i need to do for the Manager Image ID? Do i need to create my own server with docker and gitlab-runner installed on it first?

mikesiconolfi avatar Nov 07 '18 16:11 mikesiconolfi

Hi @mikesiconolfi ! Thanks for your interest in this project.

No, the AMI should be an Amazon Linux image. I'm currently using ami-0922553b7b0369273 for us-east-1, but there are newer images available.

You may obtain an AMI ID for this stack using the AWS CLI:

export AWS_DEFAULT_REGION='<your-AWS-region>'
aws ec2 describe-images \
  --owners amazon \
  --filters 'Name=name,Values=amzn2-ami-hvm-*-gp2' \
    'Name=image-type,Values=machine' \
    'Name=virtualization-type,Values=hvm' \
    'Name=architecture,Values=x86_64' \
  --query 'reverse(sort_by(Images, &CreationDate))[0].ImageId' \
  --output text

fquffio avatar Nov 07 '18 17:11 fquffio

In order to make this step easier for newcomers to this template, it would be great to have a default ami populated in the template based on the region its deployed in.

fantapop avatar Dec 05 '18 04:12 fantapop

PR #11 removes the CloudFormation parameter, so that we're no longer required to pass an AMI ID, that might not be easy to find.

Instead, AMI IDs are now retrieved with make list-latest-amis and then embedded in the template as a mapping, so that the correct value can be selected at launch/update time based on the AWS region the stack is in.

fquffio avatar Mar 21 '19 11:03 fquffio

Looks like this has never been merged

freeyland avatar Mar 11 '20 11:03 freeyland