@ -17,11 +17,11 @@ type AMIConfig struct {
// The name of the resulting AMI that will appear when managing AMIs in the
// The name of the resulting AMI that will appear when managing AMIs in the
// AWS console or via APIs. This must be unique. To help make this unique,
// AWS console or via APIs. This must be unique. To help make this unique,
// use a function like timestamp (see [template
// use a function like timestamp (see [template
// engine]( https://packer.io /docs/templates/engine) for more info).
// engine]( /docs/templates/engine) 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
// AMI(s). By default this description is empty. This is a
// AMI(s). By default this description is empty. This is a
// [template engine]( https://packer.io /docs/templates/engine), see [Build template
// [template engine]( /docs/templates/engine), see [Build template
// data](#build-template-data) for more information.
// data](#build-template-data) for more information.
AMIDescription string ` mapstructure:"ami_description" required:"false" `
AMIDescription string ` mapstructure:"ami_description" required:"false" `
// The type of virtualization for the AMI
// The type of virtualization for the AMI
@ -48,12 +48,12 @@ type AMIConfig struct {
// validation of the ami_regions configuration option. Default false.
// validation of the ami_regions configuration option. Default false.
AMISkipRegionValidation bool ` mapstructure:"skip_region_validation" required:"false" `
AMISkipRegionValidation bool ` mapstructure:"skip_region_validation" required:"false" `
// Tags applied to the AMI. This is a
// Tags applied to the AMI. This is a
// [template engine]( https://packer.io /docs/templates/engine), see [Build template
// [template engine]( /docs/templates/engine), see [Build template
// data](#build-template-data) for more information.
// data](#build-template-data) for more information.
AMITags map [ string ] string ` mapstructure:"tags" required:"false" `
AMITags map [ string ] string ` mapstructure:"tags" required:"false" `
// Same as [`tags`](#tags) but defined as a singular repeatable block
// Same as [`tags`](#tags) but defined as a singular repeatable block
// containing a `name` and a `value` field. In HCL2 mode the
// containing a `name` and a `value` field. In HCL2 mode the
// [`dynamic_block`]( https://packer.io /docs/configuration/from-1.5/expressions#dynamic-blocks)
// [`dynamic_block`]( /docs/configuration/from-1.5/expressions#dynamic-blocks)
// will allow you to create those programatically.
// will allow you to create those programatically.
AMITag hcl2template . NameValues ` mapstructure:"tag" required:"false" `
AMITag hcl2template . NameValues ` mapstructure:"tag" required:"false" `
// Enable enhanced networking (ENA but not SriovNetSupport) on
// Enable enhanced networking (ENA but not SriovNetSupport) on
@ -119,12 +119,12 @@ type AMIConfig struct {
AMISkipBuildRegion bool ` mapstructure:"skip_save_build_region" `
AMISkipBuildRegion bool ` mapstructure:"skip_save_build_region" `
// Tags to apply to snapshot.
// Tags to apply to snapshot.
// They will override AMI tags if already applied to snapshot. This is a
// They will override AMI tags if already applied to snapshot. This is a
// [template engine]( https://packer.io /docs/templates/engine), see [Build template
// [template engine]( /docs/templates/engine), see [Build template
// data](#build-template-data) for more information.
// data](#build-template-data) for more information.
SnapshotTags map [ string ] string ` mapstructure:"snapshot_tags" required:"false" `
SnapshotTags map [ string ] string ` mapstructure:"snapshot_tags" required:"false" `
// Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
// Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular
// repeatable block containing a `name` and a `value` field. In HCL2 mode the
// repeatable block containing a `name` and a `value` field. In HCL2 mode the
// [`dynamic_block`]( https://packer.io /docs/configuration/from-1.5/expressions#dynamic-blocks)
// [`dynamic_block`]( /docs/configuration/from-1.5/expressions#dynamic-blocks)
// will allow you to create those programatically.
// will allow you to create those programatically.
SnapshotTag hcl2template . NameValues ` mapstructure:"snapshot_tag" required:"false" `
SnapshotTag hcl2template . NameValues ` mapstructure:"snapshot_tag" required:"false" `
// A list of account IDs that have
// A list of account IDs that have