From c79121617cd3c2366481b55e1ddee38ba68deeaf Mon Sep 17 00:00:00 2001 From: Tim Dysinger Date: Mon, 18 Aug 2014 08:42:32 -1000 Subject: [PATCH] Use Region not S3Endpoint --- builder/amazon/instance/builder.go | 2 +- builder/amazon/instance/step_upload_bundle.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/amazon/instance/builder.go b/builder/amazon/instance/builder.go index 7edd027de..4646ad1d2 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -75,7 +75,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { "-s {{.SecretKey}} " + "-d {{.BundleDirectory}} " + "--batch " + - "--url {{.S3Endpoint}} " + + "--region {{.Region}} " + "--retry" } diff --git a/builder/amazon/instance/step_upload_bundle.go b/builder/amazon/instance/step_upload_bundle.go index 0ae1a404d..ec654aa61 100644 --- a/builder/amazon/instance/step_upload_bundle.go +++ b/builder/amazon/instance/step_upload_bundle.go @@ -11,7 +11,7 @@ type uploadCmdData struct { BucketName string BundleDirectory string ManifestPath string - S3Endpoint string + Region string SecretKey string } @@ -37,7 +37,7 @@ func (s *StepUploadBundle) Run(state multistep.StateBag) multistep.StepAction { BucketName: config.S3Bucket, BundleDirectory: config.BundleDestination, ManifestPath: manifestPath, - S3Endpoint: region.S3Endpoint, + Region: region.Name, SecretKey: config.SecretKey, }) if err != nil {