A resource that represents an asset group. The purpose of an asset group is to bundle a set of assets that have something in common, while allowing users to add annotations to the group.
resource "google_migration_center_group" "default" {
location = "us-central1"
group_id = "group-test"
description = "Terraform integration test description"
display_name = "Terraform integration test display"
labels = {
key = "value"
}
}
The following arguments are supported:
location
-
(Required)
The location of the group.
group_id
-
(Required)
Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?
.
labels
-
(Optional)
Labels as key value pairs.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the resource.
display_name
-
(Optional)
Optional. User-friendly display name.
description
-
(Optional)
Optional. The description of the group.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/groups/{{group_id}}
name
-
Output only. The name of the group.
create_time
-
Output only. The timestamp when the group was created.
update_time
-
Output only. The timestamp when the group was last updated.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Group can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/groups/{{group_id}}
{{project}}/{{location}}/{{group_id}}
{{location}}/{{group_id}}
In Terraform v1.5.0 and later, use an import
block to import Group using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/groups/{{group_id}}"
to = google_migration_center_group.default
}
When using the terraform import
command, Group can be imported using one of the formats above. For example:
$ terraform import google_migration_center_group.default projects/{{project}}/locations/{{location}}/groups/{{group_id}}
$ terraform import google_migration_center_group.default {{project}}/{{location}}/{{group_id}}
$ terraform import google_migration_center_group.default {{location}}/{{group_id}}
This resource supports User Project Overrides.