Commit 243e97c9 authored by Justin Santa Barbara's avatar Justin Santa Barbara

AWS kube-up: Bump jessie image

Also switch to a dedicated AWS account for serving this image.
parent 22e3e79c
...@@ -28,10 +28,11 @@ SSH_USER=admin ...@@ -28,10 +28,11 @@ SSH_USER=admin
function detect-jessie-image () { function detect-jessie-image () {
if [[ -z "${AWS_IMAGE-}" ]]; then if [[ -z "${AWS_IMAGE-}" ]]; then
# TODO: publish on a k8s AWS account # TODO: publish on a k8s AWS account
aws_account="721322707521" aws_account="282335181503"
# TODO: we could use tags for the image # 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 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 fi
AWS_IMAGE=`aws ec2 describe-images --owner ${aws_account} --filters Name=name,Values=${AWS_IMAGE_NAME} --query Images[].ImageId --output text` 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 if [[ -z "${AWS_IMAGE-}" ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment