summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-08-18 22:36:48 +0100
committerNick White <git@njw.name>2021-08-18 22:36:48 +0100
commit89cff0ecf987fa69edc52ee1c501b7073a303d0e (patch)
tree63c378326c1458addc816e20ee5ba2163c0af38d /README
parent48020c6e284efe49de173d414842b916de9845a7 (diff)
Add rudpad ami rules
Diffstat (limited to 'README')
-rw-r--r--README28
1 files changed, 28 insertions, 0 deletions
diff --git a/README b/README
index 6d2b461..d78fe93 100644
--- a/README
+++ b/README
@@ -29,3 +29,31 @@ To create a fresh pipeliner image:
aws ec2 create-image --instance-id <id> --name <newimagename>
- Update spotImage in bookpipeline/cloudsettings.go
+
+---
+
+To create a fresh rudpad image is very similar to the above:
+
+- Find the latest Debian AMI ID by finding the latest one from here: https://wiki.debian.org/Cloud/AmazonEC2Image/Buster in the output from:
+ aws ec2 describe-images --owner 136693071363
+
+- Create a new instance with the AMI id:
+ aws ec2 run-instances --image-id <imageid> --instance-type t2.micro --security-groups launch-wizard-1 --key-name awsdev2 --iam-instance-profile Name=rudpadder
+
+- Get public IP address of the instance once it is running:
+ lspipeline -nobooks
+
+- Update the ansible_host variable with the public IP of the new instance:
+ host_vars/rudpadami
+
+- Run ansible:
+ ansible-playbook -i hosts rudpad.yml
+
+- Get names of old images for reference:
+ aws ec2 describe-images --owners self
+
+- Create image:
+ aws ec2 create-image --instance-id <id> --name <newimagename>
+
+- Run a fresh instance using the image:
+ aws ec2 run-instances --image-id ami-00233dea4b2982690 --instance-type t2.micro --security-groups launch-wizard-1 --key-name awsdev2 --iam-instance-profile Name=rudpadder --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=rudpad}]'