-
Notifications
You must be signed in to change notification settings - Fork 0
/
kms.tf
39 lines (32 loc) · 844 Bytes
/
kms.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
resource "google_kms_key_ring" "default" {
name = "default"
location = "global"
}
resource "google_kms_key_ring" "regional" {
name = "regional"
location = "us"
}
resource "google_kms_crypto_key" "terraform-state" {
name = "terraform-state"
key_ring = google_kms_key_ring.regional.id
rotation_period = "7776000s"
lifecycle {
prevent_destroy = true
}
}
resource "google_kms_crypto_key" "k8s-envs-prod" {
name = "k8s-envs-prod"
key_ring = google_kms_key_ring.default.id
rotation_period = "7776000s"
lifecycle {
prevent_destroy = true
}
}
resource "google_kms_crypto_key" "k8s-envs-staging" {
name = "k8s-envs-staging"
key_ring = google_kms_key_ring.default.id
rotation_period = "7776000s"
lifecycle {
prevent_destroy = true
}
}