Skip to content

Commit

Permalink
Merge pull request #576 from trampfox/fix/cloud-functions-switch-to-t…
Browse files Browse the repository at this point in the history
…he-new-required-api

Switch to the new API for marking as required the `region` field of the Cloud Function resource
  • Loading branch information
turkenf authored Oct 9, 2024
2 parents b8e9543 + 34ea968 commit dd13de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cloudfunctions/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Configure(p *config.Provider) {
Schema["build_environment_variables"].Elem = schema.TypeString
r.TerraformResource.
Schema["environment_variables"].Elem = schema.TypeString
config.MarkAsRequired(r.TerraformResource, "region")
r.MarkAsRequired("region")
})

p.AddResourceConfigurator("google_cloudfunctions_function_iam_binding", func(r *config.Resource) {
Expand Down

0 comments on commit dd13de0

Please sign in to comment.