-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37b942f
commit 3ca19cb
Showing
17 changed files
with
207 additions
and
3 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
14 changes: 14 additions & 0 deletions
14
src/mapping/google/resource/storage/google_storage_bucket_access_control.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.buckets.get", | ||
"storage.buckets.update" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/google/resource/storage/google_storage_bucket_iam_member.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.buckets.getIamPolicy", | ||
"storage.buckets.setIamPolicy" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/google/resource/storage/google_storage_bucket_iam_policy.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.buckets.getIamPolicy", | ||
"storage.buckets.setIamPolicy" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/google/resource/storage/google_storage_default_object_access_control.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.buckets.get", | ||
"storage.buckets.update" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/google/resource/storage/google_storage_default_object_acl.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.buckets.get", | ||
"storage.buckets.update" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
src/mapping/google/resource/storage/google_storage_hmac_key.json
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.hmacKeys.create", | ||
"storage.hmacKeys.get", | ||
"storage.hmacKeys.update", | ||
"storage.hmacKeys.delete" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"storage.hmacKeys.delete" | ||
], | ||
"modify": [ | ||
"storage.hmacKeys.update" | ||
], | ||
"plan": [] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/google/resource/storage/google_storage_insights_report_config.json
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storageinsights.reportConfigs.create" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
src/mapping/google/resource/storage/google_storage_object_access_control.json
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"storage.objects.update", | ||
"storage.objects.get", | ||
"storage.objects.getIamPolicy", | ||
"storage.objects.setIamPolicy" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
terraform/google/backup/google_storage_bucket_access_control.tf
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "google_storage_bucket_access_control" "pike" { | ||
bucket = "pike-example" | ||
role = "READER" | ||
entity = "user:crwoolfenden@gmail.com" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "google_storage_bucket_iam_member" "pike" { | ||
bucket = "pike-example" | ||
role = "roles/storage.admin" | ||
member = "user:crwoolfenden@gmail.com" | ||
} |
19 changes: 19 additions & 0 deletions
19
terraform/google/backup/google_storage_bucket_iam_policy.tf
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
data "google_iam_policy" "admin" { | ||
binding { | ||
role = "roles/storage.admin" | ||
members = [ | ||
"user:crwoolfenden@gmail.com", | ||
] | ||
|
||
condition { | ||
title = "expires_after_2019_12_31" | ||
description = "Expiring at midnight of 2019-12-31" | ||
expression = "request.time < timestamp(\"2020-01-01T00:00:00Z\")" | ||
} | ||
} | ||
} | ||
|
||
resource "google_storage_bucket_iam_policy" "policy" { | ||
bucket = "pike-example" | ||
policy_data = data.google_iam_policy.admin.policy_data | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/google/backup/google_storage_default_object_access_control.tf
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "google_storage_default_object_access_control" "pike" { | ||
bucket = "pike-example" | ||
role = "READER" | ||
entity = "user:crwoolfenden@gmail.com" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "google_storage_default_object_acl" "pike" { | ||
bucket = "pike-example" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "google_storage_hmac_key" "pike" { | ||
service_account_email = "pike-service@pike-gcp.iam.gserviceaccount.com" | ||
} |
22 changes: 22 additions & 0 deletions
22
terraform/google/backup/google_storage_insights_report_config.tf
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
resource "google_storage_insights_report_config" "pike" { | ||
display_name = "Test Report Config" | ||
location = "us-central1" | ||
frequency_options { | ||
frequency = "WEEKLY" | ||
start_date { | ||
day = 15 | ||
month = 3 | ||
year = 2050 | ||
} | ||
end_date { | ||
day = 15 | ||
month = 4 | ||
year = 2050 | ||
} | ||
} | ||
csv_options { | ||
record_separator = "\n" | ||
delimiter = "," | ||
header_required = false | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
terraform/google/backup/google_storage_object_access_control.tf
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "google_storage_object_access_control" "pike" { | ||
object = "results.txt" | ||
bucket = "pike-example" | ||
role = "READER" | ||
entity = "allUsers" | ||
} |