summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-16 15:34:22 +0100
committerNick White <git@njw.name>2019-10-16 15:34:22 +0100
commit4a64621f959cc8ad32951f9767dea197c507dd69 (patch)
tree02a664ef03536c8e47958edef669620de52f15a4
parent0d8bcbfd9a7f7ba4fd884c91e19835f8b3bf1a70 (diff)
Add README
-rw-r--r--README25
1 files changed, 25 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..4657153
--- /dev/null
+++ b/README
@@ -0,0 +1,25 @@
+To create a fresh pipeliner image:
+
+- Find the latest Debian AMI ID by finding the latest one from here: https://wiki.debian.org/Cloud/AmazonEC2Image/Stretch in the output from:
+ aws ec2 describe-images --owner 379101102735
+
+- 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=pipeliner
+
+- Get public IP address of the instance once it is running:
+ lspipeline
+
+- Update the ansible_host variable with the public IP of the new instance:
+ rescribe/2018/ansible/host_vars/pipeliner
+
+- Run ansible:
+ ansible-playbook -i hosts pipeliner.yml
+
+- Create image:
+ aws ec2 create-image --instance-id <id> --name <newimagename>
+
+- Create new launch template version
+ (done in web interface)
+
+- Make new launch template version the default for the launch template
+ (done in web interface)