Merge pull request #904 from grosskur/fix-s3-endpoint

builder/amazon: Fix S3 endpoint URL for instance-store builds
This commit is contained in:
Mitchell Hashimoto 2014-02-24 08:20:47 -08:00
commit 0064c39120
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
"-s {{.SecretKey}} " +
"-d {{.BundleDirectory}} " +
"--batch " +
"--url https://s3-{{.Region}}.amazonaws.com " +
"--url {{.S3Endpoint}} " +
"--retry"
}

View File

@ -11,7 +11,7 @@ type uploadCmdData struct {
BucketName string
BundleDirectory string
ManifestPath string
Region string
S3Endpoint string
SecretKey string
}
@ -37,7 +37,7 @@ func (s *StepUploadBundle) Run(state multistep.StateBag) multistep.StepAction {
BucketName: config.S3Bucket,
BundleDirectory: config.BundleDestination,
ManifestPath: manifestPath,
Region: region.Name,
S3Endpoint: region.S3Endpoint,
SecretKey: config.SecretKey,
})
if err != nil {