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
bac54a66
Commit
bac54a66
authored
Sep 04, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/common: token [GH-1236]
parent
a87ce5f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
CHANGELOG.md
CHANGELOG.md
+2
-0
builder/amazon/common/access_config.go
builder/amazon/common/access_config.go
+5
-0
website/source/docs/builders/amazon-ebs.html.markdown
website/source/docs/builders/amazon-ebs.html.markdown
+5
-0
No files found.
CHANGELOG.md
View file @
bac54a66
...
...
@@ -13,6 +13,8 @@ FEATURES:
IMPROVEMENTS:
*
builder/amazon/all:
`AWS_SECURITY_TOKEN`
is read and can also be
set with the
`token`
configuration. [GH-1236]
*
builder/amazon-instance: EBS AMIs can be used as a source. [GH-1453]
*
builder/digitalocean: Can set API URL endpoint. [GH-1448]
*
builder/digitalocean: Region supports variables. [GH-1452]
...
...
builder/amazon/common/access_config.go
View file @
bac54a66
...
...
@@ -13,6 +13,7 @@ type AccessConfig struct {
AccessKey
string
`mapstructure:"access_key"`
SecretKey
string
`mapstructure:"secret_key"`
RawRegion
string
`mapstructure:"region"`
Token
string
`mapstructure:"token"`
}
// Auth returns a valid aws.Auth object for access to AWS services, or
...
...
@@ -23,6 +24,10 @@ func (c *AccessConfig) Auth() (aws.Auth, error) {
// Store the accesskey and secret that we got...
c
.
AccessKey
=
auth
.
AccessKey
c
.
SecretKey
=
auth
.
SecretKey
c
.
Token
=
auth
.
Token
}
if
auth
.
Token
==
""
&&
c
.
Token
!=
""
{
auth
.
Token
=
c
.
Token
}
return
auth
,
err
...
...
website/source/docs/builders/amazon-ebs.html.markdown
View file @
bac54a66
...
...
@@ -138,6 +138,11 @@ each category, the available configuration keys are alphabetized.
*
`temporary_key_pair_name`
(string) - The name of the temporary keypair
to generate. By default, Packer generates a name with a UUID.
*
`token`
(string) - The access token to use. This is different from
the access key and secret key. If you're not sure what this is, then you
probably don't need it. This will also be read from the
`AWS_SECURITY_TOKEN`
environmental variable.
*
`user_data`
(string) - User data to apply when launching the instance.
Note that you need to be careful about escaping characters due to the
templates being JSON. It is often more convenient to use
`user_data_file`
,
...
...
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