-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.tf
38 lines (37 loc) · 1.02 KB
/
secrets.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
module "secret-manager" {
source = "GoogleCloudPlatform/secret-manager/google"
version = "~> 0.1"
project_id = var.project_id
secrets = [
{
name = "GCP_PROJECT_ID"
automatic_replication = true
secret_data = var.project_id
},
{
name = "WIF_PROVIDER"
automatic_replication = true
secret_data = module.gh_oidc.provider_name
},
{
name = "GH_SA"
automatic_replication = true
secret_data = google_service_account.github-svc.email
},
{
name = "REGION"
automatic_replication = true
secret_data = var.region
},
{
name = "ARTIFACT_REGISTRY"
automatic_replication = true
secret_data = google_artifact_registry_repository.chatgpt_repo.repository_id
},
{
name = "IMAGE_NAME"
automatic_replication = true
secret_data = var.image_name
}
]
}