Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
0064c391
Commit
0064c391
authored
Feb 24, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #904 from grosskur/fix-s3-endpoint
builder/amazon: Fix S3 endpoint URL for instance-store builds
parents
4fc1087f
af89b31a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
builder/amazon/instance/builder.go
builder/amazon/instance/builder.go
+1
-1
builder/amazon/instance/step_upload_bundle.go
builder/amazon/instance/step_upload_bundle.go
+2
-2
No files found.
builder/amazon/instance/builder.go
View file @
0064c391
...
...
@@ -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"
}
...
...
builder/amazon/instance/step_upload_bundle.go
View file @
0064c391
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment