From 077db9facfc862feee6e059db9ac74f711d08021 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 23 Mar 2020 17:10:21 +0000 Subject: [getpipelinebook] Switch to MinimalInit() so that it can be run without SQS permissions --- cmd/getpipelinebook/main.go | 4 ++-- 1 file 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) } -- cgit v1.2.1-24-ge1ad