File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/base_template/deployment/terraform Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,15 @@ variable "app_sa_roles" {
49
49
description = " List of roles to assign to the application service account"
50
50
type = list (string )
51
51
default = [
52
- {%- if " adk " in cookiecutter . tags and cookiecutter . session_type == " alloydb" % }
52
+ {%- if cookiecutter . session_type == " alloydb" % }
53
53
" roles/secretmanager.secretAccessor" ,
54
54
{%- endif % }
55
55
" roles/aiplatform.user" ,
56
56
" roles/discoveryengine.editor" ,
57
57
" roles/logging.logWriter" ,
58
58
" roles/cloudtrace.agent" ,
59
- " roles/storage.admin"
59
+ " roles/storage.admin" ,
60
+ " roles/serviceusage.serviceUsageConsumer" ,
60
61
]
61
62
}
62
63
{% if cookiecutter . data_ingestion % }
Original file line number Diff line number Diff line change @@ -70,15 +70,15 @@ variable "app_sa_roles" {
70
70
description = " List of roles to assign to the application service account"
71
71
type = list (string )
72
72
default = [
73
- {%- if cookiecutter . deployment_target == 'cloud_run ' % }
74
- " roles/run.invoker" ,
73
+ {%- if cookiecutter . session_type == " alloydb" % }
75
74
" roles/secretmanager.secretAccessor" ,
76
75
{%- endif % }
77
76
" roles/aiplatform.user" ,
78
77
" roles/discoveryengine.editor" ,
79
78
" roles/logging.logWriter" ,
80
79
" roles/cloudtrace.agent" ,
81
- " roles/storage.admin"
80
+ " roles/storage.admin" ,
81
+ " roles/serviceusage.serviceUsageConsumer" ,
82
82
]
83
83
}
84
84
{%- if cookiecutter . deployment_target == 'cloud_run ' % }
You can’t perform that action at this time.
0 commit comments