./jq-linux64 'walk(if type == "object" then del(._comment) else . end)' ${1}.commented.json > ${1}.json
# Ran into this while building the AMI with packer
# https://github.com/hashicorp/packer/issues/6536
# the 30 minute timeout is not enough for us
export AWS_MAX_ATTEMPTS=80
export AWS_POLL_DELAY_SECONDS=60
packer build -var "docker_image=$2" ${1}.json
