terraform-google-modules / terraform-google-vpc-service-controls

Handles opinionated VPC Service Controls and Access Context Manager configuration and deployments
https://registry.terraform.io/modules/terraform-google-modules/vpc-service-controls/google
Apache License 2.0
59 stars 67 forks source link

GCR vs GAR #64

Closed tejeshnandyala closed 2 years ago

tejeshnandyala commented 2 years ago

hi,

i see that this automatic folder example is using GCR with cloud function. Is there a possibility to change it to GAR? if so, how can this be changed?

Currently i have a situation where my org policy is allowed only for allowed_values": ["in:europe-west2-locations", "in:europe-west3-locations"] and not entire eu locations. For GCR to be used i am being asked to update the org policy which i dont want to update.

How do we change to usage of GAR?

Thanks,

morgante commented 2 years ago

The underlying module is event_function: https://github.com/terraform-google-modules/terraform-google-event-function/blob/master/main.tf#L61

This uses GCS, not GCR. You can tweak the example to use a different region if you prefer.