Skip to content

Commit d4e79ea

Browse files
authored
Add project to container cluster import name. (hashicorp#1282)
* allow import of container cluster by project as well * update docs for importing container cluster with project * combine tests
1 parent 085cec5 commit d4e79ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/r/container_cluster.html.markdown

+4-1
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,11 @@ exported:
377377

378378
## Import
379379

380-
GKE clusters can be imported using the `zone`, and `name`, e.g.
380+
GKE clusters can be imported using the `project` , `zone`, and `name`. If
381+
the project is omitted, the default provider value will be used. Examples:
381382

382383
```
384+
$ terraform import google_container_cluster.mycluster my-gcp-project/us-east1-a/my-cluster
385+
383386
$ terraform import google_container_cluster.mycluster us-east1-a/my-cluster
384387
```

0 commit comments

Comments
 (0)