-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add imports to storage bucket iam resources (#3830)
Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
9a031a7
commit e61c2b7
Showing
4 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,18 @@ In addition to the arguments listed above, the following computed attributes are | |
exported: | ||
|
||
* `etag` - (Computed) The etag of the storage bucket's IAM policy. | ||
|
||
|
||
## Import | ||
|
||
For `google_storage_bucket_iam_policy`: | ||
|
||
IAM member imports use space-delimited identifiers - generally the resource in question, the role, and the member identity (i.e. `serviceAccount: [email protected]` or `user:[email protected]`). Policies, bindings, and members can be respectively imported as follows: | ||
|
||
``` | ||
$ terraform import google_storage_bucket_iam_policy.policy "my-bucket user:[email protected]" | ||
$ terraform import google_storage_bucket_iam_binding.binding "my-bucket roles/my-role " | ||
$ terraform import google_storage_bucket_iam_member.member "my-bucket roles/my-role user:[email protected]" | ||
``` |