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
27137c34
Commit
27137c34
authored
May 22, 2014
by
Ross Smith II
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1194 from gregburek/encrypted-ebs
Adds support for encrypted EBS volumes
parents
1b659d27
3a457127
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
builder/amazon/common/block_device.go
builder/amazon/common/block_device.go
+2
-0
website/source/docs/builders/amazon-ebs.html.markdown
website/source/docs/builders/amazon-ebs.html.markdown
+2
-1
website/source/docs/builders/amazon-instance.html.markdown
website/source/docs/builders/amazon-instance.html.markdown
+1
-1
No files found.
builder/amazon/common/block_device.go
View file @
27137c34
...
@@ -8,6 +8,7 @@ import (
...
@@ -8,6 +8,7 @@ import (
type
BlockDevice
struct
{
type
BlockDevice
struct
{
DeleteOnTermination
bool
`mapstructure:"delete_on_termination"`
DeleteOnTermination
bool
`mapstructure:"delete_on_termination"`
DeviceName
string
`mapstructure:"device_name"`
DeviceName
string
`mapstructure:"device_name"`
Encrypted
bool
`mapstructure:"encrypted"`
IOPS
int64
`mapstructure:"iops"`
IOPS
int64
`mapstructure:"iops"`
NoDevice
bool
`mapstructure:"no_device"`
NoDevice
bool
`mapstructure:"no_device"`
SnapshotId
string
`mapstructure:"snapshot_id"`
SnapshotId
string
`mapstructure:"snapshot_id"`
...
@@ -34,6 +35,7 @@ func buildBlockDevices(b []BlockDevice) []ec2.BlockDeviceMapping {
...
@@ -34,6 +35,7 @@ func buildBlockDevices(b []BlockDevice) []ec2.BlockDeviceMapping {
DeleteOnTermination
:
blockDevice
.
DeleteOnTermination
,
DeleteOnTermination
:
blockDevice
.
DeleteOnTermination
,
IOPS
:
blockDevice
.
IOPS
,
IOPS
:
blockDevice
.
IOPS
,
NoDevice
:
blockDevice
.
NoDevice
,
NoDevice
:
blockDevice
.
NoDevice
,
Encrypted
:
blockDevice
.
Encrypted
,
})
})
}
}
return
blockDevices
return
blockDevices
...
...
website/source/docs/builders/amazon-ebs.html.markdown
View file @
27137c34
...
@@ -62,7 +62,8 @@ each category, the available configuration keys are alphabetized.
...
@@ -62,7 +62,8 @@ each category, the available configuration keys are alphabetized.
device mappings to the AMI. The block device mappings allow for keys:
device mappings to the AMI. The block device mappings allow for keys:
"device
\_
name" (string), "virtual
\_
name" (string), "snapshot
\_
id" (string),
"device
\_
name" (string), "virtual
\_
name" (string), "snapshot
\_
id" (string),
"volume
\_
type" (string), "volume
\_
size" (integer), "delete
\_
on
\_
termination"
"volume
\_
type" (string), "volume
\_
size" (integer), "delete
\_
on
\_
termination"
(boolean), "no
\_
device" (boolean), and "iops" (integer).
(boolean), "encrypted" (boolean), "no
\_
device" (boolean), and "iops"
(integer).
*
`ami_description`
(string) - The description to set for the resulting
*
`ami_description`
(string) - The description to set for the resulting
AMI(s). By default this description is empty.
AMI(s). By default this description is empty.
...
...
website/source/docs/builders/amazon-instance.html.markdown
View file @
27137c34
...
@@ -84,7 +84,7 @@ each category, the available configuration keys are alphabetized.
...
@@ -84,7 +84,7 @@ each category, the available configuration keys are alphabetized.
device mappings to the AMI. The block device mappings allow for keys:
device mappings to the AMI. The block device mappings allow for keys:
"device
\_
name" (string), "virtual
\_
name" (string), "snapshot
\_
id" (string),
"device
\_
name" (string), "virtual
\_
name" (string), "snapshot
\_
id" (string),
"volume
\_
type" (string), "volume
\_
size" (integer), "delete
\_
on
\_
termination"
"volume
\_
type" (string), "volume
\_
size" (integer), "delete
\_
on
\_
termination"
(boolean), "no
\_
device" (boolean), and "iops" (integer).
(boolean), "
encrypted" (boolean), "
no
\_
device" (boolean), and "iops" (integer).
See
[
amazon-ebs
](
/docs/builders/amazon-ebs.html
)
for an example template.
See
[
amazon-ebs
](
/docs/builders/amazon-ebs.html
)
for an example template.
*
`ami_description`
(string) - The description to set for the resulting
*
`ami_description`
(string) - The description to set for the resulting
...
...
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