summaryrefslogtreecommitdiff
path: root/cmd/getpipelinebook/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-03-23 17:10:21 +0000
committerNick White <git@njw.name>2020-03-23 17:10:21 +0000
commit077db9facfc862feee6e059db9ac74f711d08021 (patch)
treeda8041fc54185f6a2b1a3d770285f74dc07795d9 /cmd/getpipelinebook/main.go
parente05d7ed7fa25e193d0354f763f5760696ac13d5e (diff)
[getpipelinebook] Switch to MinimalInit() so that it can be run without SQS permissions
Diffstat (limited to 'cmd/getpipelinebook/main.go')
-rw-r--r--cmd/getpipelinebook/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/getpipelinebook/main.go b/cmd/getpipelinebook/main.go
index 5438255..c23c674 100644
--- a/cmd/getpipelinebook/main.go
+++ b/cmd/getpipelinebook/main.go
@@ -33,7 +33,7 @@ func (w NullWriter) Write(p []byte) (n int, err error) {
}
type Pipeliner interface {
- Init() error
+ MinimalInit() error
ListObjects(bucket string, prefix string) ([]string, error)
Download(bucket string, key string, fn string) error
Upload(bucket string, key string, path string) error
@@ -85,7 +85,7 @@ func main() {
conn = &bookpipeline.AwsConn{Region: "eu-west-2", Logger: verboselog}
verboselog.Println("Setting up AWS session")
- err := conn.Init()
+ err := conn.MinimalInit()
if err != nil {
log.Fatalln("Error setting up cloud connection:", err)
}