Merge pull request #1425 from dysinger/1424-amazon-instance-s3-region-not-url

builder/amazon-instance: Use Region not S3Endpoint (see Issue 1424)
This commit is contained in:
Mitchell Hashimoto 2014-09-01 21:31:36 -07:00
commit 704648896e
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
"-s {{.SecretKey}} " +
"-d {{.BundleDirectory}} " +
"--batch " +
"--url {{.S3Endpoint}} " +
"--region {{.Region}} " +
"--retry"
}

View File

@ -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 {