Skip to content

Instantly share code, notes, and snippets.

@rail
Created May 26, 2015 18:35
Show Gist options
  • Save rail/8f2855e41a92714bdc4e to your computer and use it in GitHub Desktop.
Save rail/8f2855e41a92714bdc4e to your computer and use it in GitHub Desktop.
(aws_manager)[buildduty@aws-manager2.srv.releng.scl3.mozilla.com cloud-tools]$ cat /builds/aws_manager/bin/aws_manager-bld-linux64-ec2-golden.sh
#! /bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -e
set -o pipefail
LOCKFILE="/builds/aws_manager/bld-linux64-ec2-golden.lock"
lockfile -60 -r 3 "$LOCKFILE"
trap "rm -f $LOCKFILE" EXIT
cd /builds/aws_manager/cloud-tools/scripts
/builds/aws_manager/bin/python "aws_create_instance.py" -c /builds/aws_manager/cloud-tools/configs/bld-linux64 -r us-east-1 -s aws-releng -k /builds/aws_manager/secrets/aws-secrets.json --ssh-key /home/buildduty/.ssh/aws-ssh-key -i /builds/aws_manager/cloud-tools/instance_data/us-east-1.instance_data_prod.json --create-ami --ignore-subnet-check --copy-to-region us-west-2 bld-linux64-ec2-golden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment