forked from stackitcloud/terraform-provider-stackit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresource.tf
More file actions
18 lines (16 loc) · 678 Bytes
/
Copy pathresource.tf
File metadata and controls
18 lines (16 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
resource "stackit_resourcemanager_folder" "example" {
name = "example_folder"
owner_email = "foo.bar@stackit.cloud"
# in this case a org-id
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_folder_role_assignment" "fra" {
resource_id = stackit_resourcemanager_folder.example.folder_id
role = "reader"
subject = "foo.bar@stackit.cloud"
}
# Only use the import statement, if you want to import an existing folder role assignment
import {
to = stackit_authorization_folder_role_assignment.import-example
id = "${var.folder_id},${var.folder_role_assignment},${var.folder_role_assignment_subject}"
}