Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Creating Composer 1 with Terraform fails

Hello. I'm getting this error when I'm trying to create a Composer 1 env with terraform.
Error: Error waiting to create Environment: Error waiting for Creating Environment: Error code 2, message: Composer operation timed out. Please, try again.
I've tried with Gcloud, and It was successful. Do you have any clue?
Permissions seems ok.

Solved Solved
0 1 277
1 ACCEPTED SOLUTION

Hi @FNavarro,

Welcome to Google Cloud Community!

The connection time out error you've encountered could be due to the environment creation. It seems that it is taking more time than Terraform is set to wait for. With this, you may try to increase the timeout value and try creating the environment again.

Also, it is recommended to consider using Cloud Composer 2 or 3 as Google will not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. For more information, you may check out the differences between major Cloud Composer versions.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

1 REPLY 1

Hi @FNavarro,

Welcome to Google Cloud Community!

The connection time out error you've encountered could be due to the environment creation. It seems that it is taking more time than Terraform is set to wait for. With this, you may try to increase the timeout value and try creating the environment again.

Also, it is recommended to consider using Cloud Composer 2 or 3 as Google will not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. For more information, you may check out the differences between major Cloud Composer versions.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.