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) · 704 Bytes
/
Copy pathresource.tf
File metadata and controls
18 lines (16 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
resource "stackit_resourcemanager_project" "example" {
name = "example_project"
owner_email = "foo.bar@stackit.cloud"
# in this case a folder or a org-id
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_project_role_assignment" "pra" {
resource_id = stackit_resourcemanager_project.example.folder_id
role = "reader"
subject = "foo.bar@stackit.cloud"
}
# Only use the import statement, if you want to import an existing project role assignment
import {
to = stackit_authorization_project_role_assignment.import-example
id = "${var.project_id},${var.project_role_assignment_role},${var.project_role_assignment_subject}"
}