terraform-google-modules / terraform-google-bootstrap

Bootstraps Terraform usage and related CI/CD in a new Google Cloud organization
https://registry.terraform.io/modules/terraform-google-modules/bootstrap/google
Apache License 2.0
211 stars 147 forks source link

What's the difference between `folder_id` and `parent_folder`? #300

Closed lpezet closed 1 month ago

lpezet commented 3 months ago

TL;DR

As per the variables.tf file:

variable "parent_folder" {
  description = "GCP parent folder ID in the form folders/{id}"
  default     = ""
  type        = string
}
...
variable "folder_id" {
  description = "The ID of a folder to host this project"
  type        = string
  default     = ""
}

Terraform Resources

No response

Detailed design

No response

Additional information

Looking at terraform-example-foundation it look like it's an optional folder where to host the seed-project. But then every google_folder_iam_member is based on parent_id (if parent_folder provided). So is it possible to have a folder_id OUTSIDE the parent_folder? In the case of terraform-example-foundation they create a subfolder within parent_folder, which makes sense. Just confusing is all...

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days