ReleaseEngineering/How To/Setup buildbot masters in AWS: Difference between revisions

Line 16: Line 16:
* To create a master instance use the following snippet as a template. Don't forget to adjust the name and region accordingly (or use the snippets produced with the "<tt>--bash FILE</tt>" option):
* To create a master instance use the following snippet as a template. Don't forget to adjust the name and region accordingly (or use the snippets produced with the "<tt>--bash FILE</tt>" option):
<pre>
<pre>
ssh cruncher.build.mozilla.org
ssh buildduty@aws-manager1.srv.releng.scl3.mozilla.com
sudo su - buildduty
source /builds/aws_manager/bin/activate
source ~/aws/aws-ve/bin/activate
cd /builds/aws_manager
cd ~/aws/cloud-tools/aws
 
hg pull -u
python scripts/aws_create_instance.py -c configs/master-linux64 -r us-west-2 -s aws-releng  \
eval `ssh-agent`
   -k secrets/aws-secrets.json --ssh-key ~/.ssh/aws-ssh-key \
ssh-add secrets/aws-releng
   -i cloud-tools/instance_data/us-west-2.instance_data_master.json buildbot-master58
python aws_create_instance.py -c configs/master-linux64 -r us-west-2 -s aws-releng  \
   -k /home/buildduty/aws/cloud-tools/aws/secrets/aws-secrets.json \
   -i instance_data/us-west-2.instance_data_master.json buildbot-master58
</pre>
</pre>


Confirmed users
3,104

edits