Open chase-replicated opened 1 year ago
@chase-replicated can you add location in your config to see if it solves the problem?
Ah, thank you, that got me past that error. In that case, Should location be a required argument on this page? I didn't provide the providers file initially, so I've provided it below, but it would seem to me it should inherit what was set for "region" in the providers file by default.
provider "google" {
project = "chase-test-custodian"
# also tried 'us-central1-a'
region = "us-central1"
}
@chase-replicated For most resources, either region or zone is required since they are regional or zonal resources. The reason it becomes optional on each individual resource doc is they are set in the provider block as you found out above. Should we close this issue then?
@edwardmedia I think I maybe explained incorrectly, I already have the region set in my provider but it won't work unless I also specify the region in the google_cloudfunctions2_function or else I encounter the error.
The location validation like getLocation() is needed. That could be implemented in a shared code, and requires through investigation.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
1.3.7
Affected Resource(s)
google_cloudfunctions2_function
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions2_function#nested_build_config
Terraform Configuration Files
Root module:
child module
Debug Output
https://gist.github.com/chase-replicated/47d1f18c8ae77e923d0ec398992fec24
Panic Output
X
Expected Behavior
Should have created a cloudfunctions function
Actual Behavior
Errored out with "URL has empty component"
Steps to Reproduce
terraform apply
Important Factoids
References