Skip to content

Commit bf75b52

Browse files
authored
chore: update connection metadata for figuring out project_roles automatically (#293)
1 parent f0fa6d0 commit bf75b52

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

modules/v2/metadata.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,37 @@ spec:
185185
description: Roles to grant to the newly created cloud run SA in specified project. Should be used with create_service_account set to true and no input for service_account
186186
varType: list(string)
187187
defaultValue: []
188+
connections:
189+
- source:
190+
source: github.com/GoogleCloudPlatform/terraform-google-secret-manager//modules/simple-secret
191+
version: ">= 0.5.1"
192+
spec:
193+
outputExpr: "[\"roles/secretmanager.secretAccessor\"]"
194+
- source:
195+
source: github.com/terraform-google-modules/terraform-google-sql-db//modules/postgresql
196+
version: ">= 23.0"
197+
spec:
198+
outputExpr: "[\"roles/cloudsql.instanceUser\", \"roles/cloudsql.client\"]"
199+
- source:
200+
source: github.com/terraform-google-modules/terraform-google-sql-db//modules/mysql
201+
version: ">= 23.0"
202+
spec:
203+
outputExpr: "[\"roles/cloudsql.instanceUser\", \"roles/cloudsql.client\"]"
204+
- source:
205+
source: github.com/terraform-google-modules/terraform-google-memorystore
206+
version: ">= 12.0"
207+
spec:
208+
outputExpr: "[\"roles/redis.editor\"]"
209+
- source:
210+
source: github.com/GoogleCloudPlatform/terraform-google-cloud-run//modules/v2
211+
version: ">= 0.13"
212+
spec:
213+
outputExpr: "[\"roles/run.invoker\"]"
214+
- source:
215+
source: github.com/terraform-google-modules/terraform-google-project-factory//modules/project_services
216+
version: ">= 17.1.0"
217+
spec:
218+
outputExpr: "[\"roles/aiplatform.user\"]"
188219
- name: members
189220
description: Users/SAs to be given invoker access to the service
190221
varType: list(string)

0 commit comments

Comments
 (0)