mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
26 lines
682 B
HCL
26 lines
682 B
HCL
locals {
|
|
vaultGcsSvcacctKey = google_service_account_key.vault-svcacct-key.private_key
|
|
vaultGcsUrl = google_storage_bucket.vault-backend.url
|
|
}
|
|
|
|
resource "google_service_account" "vault-svcacct" {
|
|
account_id = "vault-gcs"
|
|
display_name = "Vault Svcacct"
|
|
}
|
|
|
|
resource "google_service_account_key" "vault-svcacct-key" {
|
|
service_account_id = google_service_account.vault-svcacct.name
|
|
}
|
|
|
|
resource "google_storage_bucket" "vault-backend" {
|
|
name = "roleypoly-vault"
|
|
}
|
|
|
|
resource "google_storage_bucket_acl" "vault-backend-acl" {
|
|
bucket = google_storage_bucket.vault-backend.name
|
|
|
|
role_entity = [
|
|
"WRITER:user-${google_service_account.vault-svcacct.email}"
|
|
]
|
|
}
|
|
|