diff --git a/builder/amazon/common/run_config.go b/builder/amazon/common/run_config.go index 9f5479f6e..a7bdb4451 100644 --- a/builder/amazon/common/run_config.go +++ b/builder/amazon/common/run_config.go @@ -166,10 +166,7 @@ type RunConfig struct { // The EC2 instance type to use while building the // AMI, such as t2.small. InstanceType string `mapstructure:"instance_type" required:"true"` - // Filters used to populate the `security_group_ids` field. Example: - // - // - // + // Filters used to populate the `security_group_ids` field. JSON Example: // // ```json // { @@ -181,8 +178,7 @@ type RunConfig struct { // } // ``` // - // - // + // HCL2 Example: // // ```hcl // security_group_filter { @@ -192,9 +188,6 @@ type RunConfig struct { // } // ``` // - // - // - // // This selects the SG's with tag `Class` with the value `packer`. // // - `filters` (map of strings) - filters used to select a diff --git a/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx b/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx index 5072ccc00..8dcec731f 100644 --- a/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx +++ b/website/pages/partials/builder/amazon/common/RunConfig-not-required.mdx @@ -92,10 +92,7 @@ shutdown in case Packer exits ungracefully. Possible values are stop and terminate. Defaults to stop. -- `security_group_filter` (SecurityGroupFilterOptions) - Filters used to populate the `security_group_ids` field. Example: - - - +- `security_group_filter` (SecurityGroupFilterOptions) - Filters used to populate the `security_group_ids` field. JSON Example: ```json { @@ -107,8 +104,7 @@ } ``` - - + HCL2 Example: ```hcl security_group_filter { @@ -118,9 +114,6 @@ } ``` - - - This selects the SG's with tag `Class` with the value `packer`. - `filters` (map of strings) - filters used to select a