Skip to content

Commit 7a2a446

Browse files
Add import example (#3737) (#2265)
Signed-off-by: Modular Magician <[email protected]>
1 parent c67a64b commit 7a2a446

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changelog/3737.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:none
2+
Added an import example to show how to import Cloud Functions from other projects/regions.
3+
Originally commited as https://github.com/terraform-providers/terraform-provider-google/pull/6735 but it was requested by @c2thorn I propose the change here instead.
4+
```

website/docs/r/cloudfunctions_function.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ This resource provides the following
193193

194194
## Import
195195

196-
Functions can be imported using the `name`, e.g.
196+
Functions can be imported using the `name` or `{{project}}/{{region}}/name`, e.g.
197197

198198
```
199199
$ terraform import google_cloudfunctions_function.default function-test
200+
$ terraform import google_cloudfunctions_function.default {{project}}/{{region}}/function-test
200201
```

0 commit comments

Comments
 (0)