Use Region not S3Endpoint
This commit is contained in:
parent
70cc555133
commit
c79121617c
|
@ -75,7 +75,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
|||
"-s {{.SecretKey}} " +
|
||||
"-d {{.BundleDirectory}} " +
|
||||
"--batch " +
|
||||
"--url {{.S3Endpoint}} " +
|
||||
"--region {{.Region}} " +
|
||||
"--retry"
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue