Merge pull request #9455 from hashicorp/fix_9393

docs/builder/google: Add note about boolean values for compute instance metadata
pull/9397/head^2
Wilken Rivera 6 years ago committed by GitHub
commit aa91ef7edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"`

@ -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.

Loading…
Cancel
Save