Represents an Instance Settings resource. Instance settings are centralized configuration parameters that allow users to configure the default values for specific VM parameters that are normally set using GCE instance API methods.
To get more information about InstanceSettings, see:
resource "google_compute_instance_settings" "gce_instance_settings" {
zone = "us-east7-b"
metadata {
items = {
foo = "baz"
}
}
}
The following arguments are supported:
zone
-
(Required)
A reference to the zone where the machine resides.metadata
-
(Optional)
The metadata key/value pairs assigned to all the instances in the corresponding scope.
Structure is documented below.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
items
-
(Optional)
A metadata key/value items map. The total size of all keys and values must be less than 512KBIn addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/zones/{{zone}}/instanceSettings
fingerprint
-
The fingerprint used for optimistic locking of this resource. Used
internally during updates.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.InstanceSettings can be imported using any of these accepted formats:
projects/{{project}}/zones/{{zone}}/instanceSettings
{{project}}/{{zone}}
{{zone}}
In Terraform v1.5.0 and later, use an import
block to import InstanceSettings using one of the formats above. For example:
import {
id = "projects/{{project}}/zones/{{zone}}/instanceSettings"
to = google_compute_instance_settings.default
}
When using the terraform import
command, InstanceSettings can be imported using one of the formats above. For example:
$ terraform import google_compute_instance_settings.default projects/{{project}}/zones/{{zone}}/instanceSettings
$ terraform import google_compute_instance_settings.default {{project}}/{{zone}}
$ terraform import google_compute_instance_settings.default {{zone}}
This resource supports User Project Overrides.