Merge pull request #23045 from justinsb/aws_bump_image_20160316

Automatic merge from submit-queue

AWS kube-up: Bump jessie image
This commit is contained in:
k8s-merge-robot 2016-04-03 03:47:34 -07:00
commit 47bcf37198

View File

@ -28,10 +28,11 @@ SSH_USER=admin
function detect-jessie-image () {
if [[ -z "${AWS_IMAGE-}" ]]; then
# TODO: publish on a k8s AWS account
aws_account="721322707521"
# TODO: we could use tags for the image
aws_account="282335181503"
# TODO: we could use a tag for the latest image, instead of bumping it every time
# e.g. family = k8s-1.2-debian-jessie-amd64-hvm-ebs latest/1.2=true
if [[ -z "${AWS_IMAGE_NAME:-}" ]]; then
AWS_IMAGE_NAME="k8s-1.2-debian-jessie-amd64-hvm-2016-03-05-ebs"
AWS_IMAGE_NAME="k8s-1.2-debian-jessie-amd64-hvm-2016-03-16-ebs"
fi
AWS_IMAGE=`aws ec2 describe-images --owner ${aws_account} --filters Name=name,Values=${AWS_IMAGE_NAME} --query Images[].ImageId --output text`
if [[ -z "${AWS_IMAGE-}" ]]; then