From 913a6023459700e213eb0b03bb262555fc2710f5 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 7 Apr 2020 12:54:07 +0100 Subject: Improve documentation --- cloudsettings.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'cloudsettings.go') diff --git a/cloudsettings.go b/cloudsettings.go index 0cf1777..fa60238 100644 --- a/cloudsettings.go +++ b/cloudsettings.go @@ -7,7 +7,13 @@ package bookpipeline // This file contains various cloud account specific stuff; change this if // you want to use the cloud functionality on your own site. -// Spot instance details +// Spot instance details. +// The profile needs to allow permissions to the below S3 buckets and +// SQS queues, the Sg (security group) doesn't need any permissions, +// beyond SSH if you like, and the image should have bookpipeline +// installed and ideally auto-updating. +// TODO: release ansible repository which creates AMI. +// TODO: create profile and security group with mkpipeline const ( spotProfile = "arn:aws:iam::557852942063:instance-profile/pipeliner" spotImage = "ami-0bc6ef6900f6da5d3" @@ -15,7 +21,7 @@ const ( spotSg = "sg-0be8a3ab89e7136b9" ) -// Queue names +// Queue names. Can be anything unique in SQS. const ( queuePreProc = "rescribepreprocess" queueWipeOnly = "rescribewipeonly" @@ -23,7 +29,7 @@ const ( queueAnalyse = "rescribeanalyse" ) -// Storage bucket names +// Storage bucket names. Can be anything unique in S3. const ( storageWip = "rescribeinprogress" ) -- cgit v1.2.1-24-ge1ad