Setting usage_bucket_name variable I always get a timeout whether I create the bucket after creating the bucket, bucket is shared from another project or the bucket does not exist.
What am I misunderstanding or doing wrong?
Expected behavior
Since this is at project creation, I expect the usage bucket to be created automatically in the module. As you cannot have a bucket without the project created.
Observed behavior
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Creating...
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [10s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [20s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [30s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [40s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [50s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m0s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m10s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m20s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m30s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m40s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [1m50s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m0s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m10s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m20s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m30s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m40s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [2m50s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m0s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m10s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m20s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m30s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m40s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [3m50s elapsed]
module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0]: Still creating... [4m0s elapsed]
╷
│ Error: Error waiting for Setting usage export bucket.: timeout while waiting for state to become 'DONE' (last state: 'RUNNING', timeout: 4m0s)
│
│ with module.project_create.module.project-factory.google_project_usage_export_bucket.usage_report_export[0],
│ on .terraform/modules/project_create/modules/core_project_factory/main.tf line 277, in resource "google_project_usage_export_bucket" "usage_report_export":
│ 277: resource "google_project_usage_export_bucket" "usage_report_export" {
TL;DR
Setting usage_bucket_name variable I always get a timeout whether I create the bucket after creating the bucket, bucket is shared from another project or the bucket does not exist.
What am I misunderstanding or doing wrong?
Expected behavior
Since this is at project creation, I expect the usage bucket to be created automatically in the module. As you cannot have a bucket without the project created.
Observed behavior
Terraform Configuration
Terraform Version
Additional information
No response