diff options
author | Nick White <git@njw.name> | 2020-04-07 12:54:07 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-04-07 12:54:07 +0100 |
commit | 913a6023459700e213eb0b03bb262555fc2710f5 (patch) | |
tree | ff7379df6da4e477d19a06c1c8316ba55b7e8b6a /cloudsettings.go | |
parent | 9fb0842f07320d47509865c689747d2c82379f3d (diff) |
Improve documentation
Diffstat (limited to 'cloudsettings.go')
-rw-r--r-- | cloudsettings.go | 12 |
1 files changed, 9 insertions, 3 deletions
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" ) |