File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ resource "google_secret_manager_secret_version" "snyk_token_version" {
43
43
module "gcp_python_fastapi_pipeline" {
44
44
source = " ./modules/pipelines"
45
45
46
- project_id = var. project_id
46
+ project_id = var. PROJECT_ID
47
47
region = var. region
48
48
49
49
cloudbuild_trigger_name = " gcp-python-fastapi"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ resource "google_project_iam_member" "cloud_build_roles" {
16
16
" roles/iam.serviceAccountUser" ,
17
17
" roles/run.admin"
18
18
])
19
- project = var. project_id
19
+ project = var. PROJECT_ID
20
20
role = each. value
21
21
member = " serviceAccount:${ google_service_account . cloudbuild_service_account . email } "
22
22
}
@@ -27,7 +27,7 @@ resource "google_secret_manager_secret_iam_binding" "secret_manager_binding" {
27
27
" roles/secretmanager.admin"
28
28
])
29
29
30
- project = var. project_id
30
+ project = var. PROJECT_ID
31
31
secret_id = var. secret_id
32
32
role = each. value
33
33
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ terraform {
9
9
}
10
10
11
11
provider "google" {
12
- project = var. project_id
12
+ project = var. PROJECT_ID
13
13
region = var. region
14
14
}
Original file line number Diff line number Diff line change 1
- variable "project_id" {
2
- type = string
3
- description = " Project ID"
4
- default = " dsb-innovation-hub"
5
- }
6
-
7
1
variable "region" {
8
2
type = string
9
3
description = " Region"
@@ -12,3 +6,4 @@ variable "region" {
12
6
13
7
# Terraform Environment Variables
14
8
variable "SNYK_TOKEN" {}
9
+ variable "PROJECT_ID" {}
You can’t perform that action at this time.
0 commit comments