-
Notifications
You must be signed in to change notification settings - Fork 28
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
e7ab441
commit 1a6f353
Showing
14 changed files
with
118 additions
and
14 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
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": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"cloudkms.cryptoKeys.get" | ||
] | ||
} | ||
] |
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": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"cloudkms.keyRings.get" | ||
] | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
src/mapping/gcp/resource/cloudkms/google_kms_crypto_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,21 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"cloudkms.cryptoKeys.create", | ||
"cloudkms.cryptoKeys.get", | ||
"cloudkms.cryptoKeyVersions.list", | ||
"cloudkms.cryptoKeyVersions.destroy", | ||
"cloudkms.cryptoKeys.update" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"cloudkms.cryptoKeyVersions.destroy" | ||
], | ||
"modify": [ | ||
"cloudkms.cryptoKeys.update" | ||
], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/gcp/resource/cloudkms/google_kms_key_ring.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": [ | ||
"cloudkms.keyRings.create", | ||
"cloudkms.keyRings.get" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
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,8 @@ | ||
data "google_kms_crypto_key" "pike" { | ||
name = "pike-key-keep" | ||
key_ring = "projects/pike-361314/locations/europe-west1/keyRings/pike" | ||
} | ||
|
||
output "pike-key" { | ||
value = data.google_kms_crypto_key.pike | ||
} |
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,9 @@ | ||
|
||
data "google_kms_key_ring" "pike" { | ||
name = "pike" | ||
location = "europe-west1" | ||
} | ||
|
||
output "ring" { | ||
value = data.google_kms_key_ring.pike | ||
} |
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 @@ | ||
resource "google_kms_crypto_key" "pike" { | ||
name = "pike-key-keep" | ||
key_ring = "projects/pike-361314/locations/europe-west1/keyRings/pike" | ||
rotation_period = "100000s" | ||
|
||
purpose = "ENCRYPT_DECRYPT" | ||
labels = { | ||
"pike" = "permissions" | ||
update = "possible" | ||
} | ||
# destroy_scheduled_duration = "86400s" | ||
|
||
# lifecycle { | ||
# prevent_destroy = true | ||
# } | ||
} |
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,7 @@ | ||
resource "google_kms_key_ring" "pike" { | ||
name = "pike" | ||
location = "europe-west1" | ||
} | ||
|
||
# key rings cannot be deleted | ||
# terraform import google_kms_key_ring.pike projects/pike-361314/locations/europe-west1/keyRings/pike |
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