Merge pull request #904 from grosskur/fix-s3-endpoint
builder/amazon: Fix S3 endpoint URL for instance-store builds
This commit is contained in:
commit
0064c39120
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue