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

Update ami used #5

Open
glinton opened this issue Oct 17, 2017 · 2 comments
Open

Update ami used #5

glinton opened this issue Oct 17, 2017 · 2 comments

Comments

@glinton
Copy link
Contributor

glinton commented Oct 17, 2017

Currently, the ami's are hardcoded from December 2016. At least one uses a kernel with a known memory bug - it oom kills very aggressively.

We should either update the ami's used, or use the latest so we don't have to update the adapter every time AWS releases a new ami.

@tylerflint
Copy link
Contributor

Do we know which amis we should be using? It's a pretty simple update.

@rgoomar
Copy link

rgoomar commented Oct 18, 2017

If it has to be an Ubuntu image, then using the latest could work, but you can find the images here - https://cloud-images.ubuntu.com/locator/ec2/

But, the AWS CLI way to find the latest Ubuntu image is:

aws ec2 describe-images \
 --region us-east-1 \
 --filters Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server* \
 --query 'Images[*].[ImageId,CreationDate]' \
 --output text \
 | sort -k2 -r \
 | head -n1

Something like that. Which you could just use that and iterate through regions to find the ami.
And if you want to pull out the ami, just add this after:

 | cut -f 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants