terraform-google-modules/terraform-google-project-factory

make org id optional

bharathkkb opened this issue · 2 comments

TL;DR

Org id could be made optional when folder is used.

Terraform Resources

No response

Detailed design

No response

Additional information

No response

From what I see here, folder_id is already preferred if both folder_id and org_id are given.

Only thing that is missing is a default on org_id so it would be optional.
And maybe some smart check that one of both variables has to be set, anything else?

It is preferred but currently the input var is a required which we could make optional

variable "org_id" {
description = "The organization ID."
type = string
}