-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
62 lines (48 loc) · 1.48 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# FAILURE TEST SCENARIO
# resource "google_project_iam_binding" "orgSecurityPolicy" {
# project = "w-app-targetapp-prod-0805"
# role = "roles/compute.orgSecurityPolicyAdmin"
# members = [
# "user:[email protected]"
# ]
# }
# resource "google_project_iam_binding" "editorRole" {
# project = "w-app-targetapp-prod-0805"
# role = "roles/editor"
# members = [
# "user:[email protected]"
# ]
# }
# resource "google_project_iam_binding" "bqAdmin" {
# project = "w-app-targetapp-prod-0805"
# role = "roles/storage.admin"
# members = [
# "user:[email protected]"
# ]
# }
# resource "google_project_iam_binding" "storageAdmin" {
# project = "w-app-targetapp-prod-0805"
# role = "roles/storage.admin"
# members = [
# "user:[email protected]"
# ]
# }
# resource "google_project_iam_binding" "projectIAMAdmin" {
# project = "w-app-targetapp-prod-0805"
# role = "roles/resourcemanager.projectIamAdminn"
# members = [
# "user:[email protected]"
# ]
# }
# SUCCESS SCENARIO
resource "google_storage_bucket" "test-storage-bucket" {
project = "w-app-targetapp-prod-0805"
name = "w-test-storage-prd-demo-0823"
location = "US"
force_destroy = true
}
resource "google_project_iam_member" "storageAdminSABinding" {
project = "w-app-targetapp-prod-0805"
role = "roles/storage.admin"
member = "serviceAccount:[email protected]"
}