re-apply doc changes of master
This commit is contained in:
parent
299544a4c7
commit
849de792da
|
@ -13,9 +13,9 @@ import (
|
||||||
|
|
||||||
// AMIConfig is for common configuration related to creating AMIs.
|
// AMIConfig is for common configuration related to creating AMIs.
|
||||||
type AMIConfig struct {
|
type AMIConfig struct {
|
||||||
// The name of the resulting AMI that will appear when
|
// The name of the resulting AMI that will appear when managing AMIs in the
|
||||||
// managing AMIs in the AWS console or via APIs. This must be unique. To help
|
// AWS console or via APIs. This must be unique. To help make this unique,
|
||||||
// make this unique, use a function like timestamp (see [template
|
// use a function like timestamp (see [template
|
||||||
// engine](../templates/engine.html) for more info).
|
// engine](../templates/engine.html) for more info).
|
||||||
AMIName string `mapstructure:"ami_name" required:"true"`
|
AMIName string `mapstructure:"ami_name" required:"true"`
|
||||||
// The description to set for the resulting
|
// The description to set for the resulting
|
||||||
|
@ -51,13 +51,12 @@ type AMIConfig struct {
|
||||||
// [template engine](/docs/templates/engine.html), see [Build template
|
// [template engine](/docs/templates/engine.html), see [Build template
|
||||||
// data](#build-template-data) for more information.
|
// data](#build-template-data) for more information.
|
||||||
AMITags TagMap `mapstructure:"tags" required:"false"`
|
AMITags TagMap `mapstructure:"tags" required:"false"`
|
||||||
// Enable enhanced networking (ENA but not
|
// Enable enhanced networking (ENA but not SriovNetSupport) on
|
||||||
// SriovNetSupport) on HVM-compatible AMIs. If set, add
|
// HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
|
||||||
// ec2:ModifyInstanceAttribute to your AWS IAM policy. If false, this will
|
// AWS IAM policy.
|
||||||
// disable enhanced networking in the final AMI as opposed to passing the
|
//
|
||||||
// setting through unchanged from the source. Note: you must make sure
|
// Note: you must make sure enhanced networking is enabled on your
|
||||||
// enhanced networking is enabled on your instance. [Amazon's
|
// instance. See [Amazon's documentation on enabling enhanced
|
||||||
// documentation on enabling enhanced
|
|
||||||
// networking](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enabling_enhanced_networking).
|
// networking](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enabling_enhanced_networking).
|
||||||
AMIENASupport config.Trilean `mapstructure:"ena_support" required:"false"`
|
AMIENASupport config.Trilean `mapstructure:"ena_support" required:"false"`
|
||||||
// Enable enhanced networking (SriovNetSupport but not ENA) on
|
// Enable enhanced networking (SriovNetSupport but not ENA) on
|
||||||
|
|
|
@ -152,11 +152,9 @@ type RunConfig struct {
|
||||||
//
|
//
|
||||||
// `security_group_ids` take precedence over this.
|
// `security_group_ids` take precedence over this.
|
||||||
SecurityGroupFilter SecurityGroupFilterOptions `mapstructure:"security_group_filter" required:"false"`
|
SecurityGroupFilter SecurityGroupFilterOptions `mapstructure:"security_group_filter" required:"false"`
|
||||||
// Tags to apply to the instance that is *launched* to create the AMI.
|
// Tags to apply to the instance that is that is *launched* to create the
|
||||||
// These tags are *not* applied to the resulting AMI unless they're
|
// EBS volumes. This is a [template engine](/docs/templates/engine.html),
|
||||||
// duplicated in `tags`. This is a [template
|
// see [Build template data](#build-template-data) for more information.
|
||||||
// engine](/docs/templates/engine.html), see [Build template
|
|
||||||
// data](#build-template-data) for more information.
|
|
||||||
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
RunTags map[string]string `mapstructure:"run_tags" required:"false"`
|
||||||
// The ID (not the name) of the security
|
// The ID (not the name) of the security
|
||||||
// group to assign to the instance. By default this is not set and Packer will
|
// group to assign to the instance. By default this is not set and Packer will
|
||||||
|
|
|
@ -59,9 +59,14 @@ type Config struct {
|
||||||
// The size (in GB) of the root disk of the new
|
// The size (in GB) of the root disk of the new
|
||||||
// instance. This option is only available when using source_template.
|
// instance. This option is only available when using source_template.
|
||||||
DiskSize int64 `mapstructure:"disk_size" required:"false"`
|
DiskSize int64 `mapstructure:"disk_size" required:"false"`
|
||||||
//
|
// If `true` make a call to the CloudStack API, after loading image to
|
||||||
|
// cache, requesting to check and detach ISO file (if any) currently
|
||||||
|
// attached to a virtual machine. Defaults to `false`. This option is only
|
||||||
|
// available when using `source_iso`.
|
||||||
EjectISO bool `mapstructure:"eject_iso"`
|
EjectISO bool `mapstructure:"eject_iso"`
|
||||||
//
|
// Configure the duration time to wait, making sure virtual machine is able
|
||||||
|
// to finish installing OS before it ejects safely. Requires `eject_iso`
|
||||||
|
// set to `true` and this option is only available when using `source_iso`.
|
||||||
EjectISODelay time.Duration `mapstructure:"eject_iso_delay"`
|
EjectISODelay time.Duration `mapstructure:"eject_iso_delay"`
|
||||||
// Set to true to expunge the instance when it is
|
// Set to true to expunge the instance when it is
|
||||||
// destroyed. Defaults to false.
|
// destroyed. Defaults to false.
|
||||||
|
|
|
@ -15,11 +15,10 @@ The `amazon-ebsvolume` Packer builder is able to create Amazon Elastic Block
|
||||||
Store volumes which are prepopulated with filesystems or data.
|
Store volumes which are prepopulated with filesystems or data.
|
||||||
|
|
||||||
This builder creates EBS volumes by launching an EC2 instance from a source
|
This builder creates EBS volumes by launching an EC2 instance from a source
|
||||||
provisioning that running machine, and then destroying the source machine, AMI.
|
AMI. One or more EBS volumes are attached to the running instance, allowing
|
||||||
One or more EBS volumes are attached to the running instance, allowing keeping
|
them to be provisioned into from the running machine. Once provisioning is
|
||||||
the volumes intact. them to be provisioned into from the running machine. Once
|
complete the source machine is destroyed. The provisioned volumes are kept
|
||||||
provisioning is complete the source machine is destroyed. The provisioned
|
intact.
|
||||||
volumes are kept intact.
|
|
||||||
|
|
||||||
This is all done in your own AWS account. The builder will create temporary key
|
This is all done in your own AWS account. The builder will create temporary key
|
||||||
pairs, security group rules, etc. that provide it temporary access to the
|
pairs, security group rules, etc. that provide it temporary access to the
|
||||||
|
|
Loading…
Reference in New Issue