diff --git a/builder/googlecompute/config.go b/builder/googlecompute/config.go index b832bb817..b924ed92c 100644 --- a/builder/googlecompute/config.go +++ b/builder/googlecompute/config.go @@ -128,6 +128,9 @@ type Config struct { // The machine type. Defaults to "n1-standard-1". MachineType string `mapstructure:"machine_type" required:"false"` // Metadata applied to the launched instance. + // All metadata configuration values are expected to be of type string. + // Google metadata options that take a value of `TRUE` or `FALSE` should be + // set as a string (i.e `"TRUE"` `"FALSE"` or `"true"` `"false"`). Metadata map[string]string `mapstructure:"metadata" required:"false"` // Metadata applied to the launched instance. Values are files. MetadataFiles map[string]string `mapstructure:"metadata_files"` diff --git a/website/pages/partials/builder/googlecompute/Config-not-required.mdx b/website/pages/partials/builder/googlecompute/Config-not-required.mdx index 4afa68fd9..81528813e 100644 --- a/website/pages/partials/builder/googlecompute/Config-not-required.mdx +++ b/website/pages/partials/builder/googlecompute/Config-not-required.mdx @@ -93,6 +93,9 @@ - `machine_type` (string) - The machine type. Defaults to "n1-standard-1". - `metadata` (map[string]string) - Metadata applied to the launched instance. + All metadata configuration values are expected to be of type string. + Google metadata options that take a value of `TRUE` or `FALSE` should be + set as a string (i.e `"TRUE"` `"FALSE"` or `"true"` `"false"`). - `metadata_files` (map[string]string) - Metadata applied to the launched instance. Values are files.