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
60428cef
Commit
60428cef
authored
Oct 21, 2013
by
Matthew Hooker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/ebs: Add config for target AZ.
Fixes [GH-536]
parent
5b1463f7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
CHANGELOG.md
CHANGELOG.md
+3
-0
builder/amazon/common/run_config.go
builder/amazon/common/run_config.go
+2
-0
builder/amazon/ebs/builder.go
builder/amazon/ebs/builder.go
+1
-0
website/source/docs/builders/amazon-ebs.html.markdown
website/source/docs/builders/amazon-ebs.html.markdown
+3
-0
No files found.
CHANGELOG.md
View file @
60428cef
## 0.4.0 (unreleased)
FEATURES:
*
builder/amazon/ebs: Ability to specify which availability zone to create
instance in. [GH-536]
## 0.3.10 (October 20, 2013)
...
...
builder/amazon/common/run_config.go
View file @
60428cef
...
...
@@ -23,6 +23,7 @@ type RunConfig struct {
SubnetId
string
`mapstructure:"subnet_id"`
TemporaryKeyPairName
string
`mapstructure:"temporary_key_pair_name"`
VpcId
string
`mapstructure:"vpc_id"`
AvailZone
string
`mapstructure:"avail_zone"`
// Unexported fields that are calculated from others
sshTimeout
time
.
Duration
...
...
@@ -83,6 +84,7 @@ func (c *RunConfig) Prepare(t *packer.ConfigTemplate) []error {
"subnet_id"
:
&
c
.
SubnetId
,
"temporary_key_pair_name"
:
&
c
.
TemporaryKeyPairName
,
"vpc_id"
:
&
c
.
VpcId
,
"avail_zone"
:
&
c
.
AvailZone
,
}
for
n
,
ptr
:=
range
templates
{
...
...
builder/amazon/ebs/builder.go
View file @
60428cef
...
...
@@ -101,6 +101,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
SourceAMI
:
b
.
config
.
SourceAmi
,
IamInstanceProfile
:
b
.
config
.
IamInstanceProfile
,
SubnetId
:
b
.
config
.
SubnetId
,
AvailZone
:
b
.
config
.
AvailZone
,
BlockDevices
:
b
.
config
.
BlockDevices
,
},
&
common
.
StepConnectSSH
{
...
...
website/source/docs/builders/amazon-ebs.html.markdown
View file @
60428cef
...
...
@@ -120,6 +120,9 @@ Optional:
*
`vpc_id`
(string) - If launching into a VPC subnet, Packer needs the
VPC ID in order to create a temporary security group within the VPC.
*
`avail_zone`
(string) - Destination availability zone to launch instance in.
Leave this empty to allow Amazon to auto-assign..
## Basic Example
Here is a basic example. It is completely valid except for the access keys:
...
...
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