Terraform Version
Terraform v1.9.2
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v5.25.0
+ provider registry.terraform.io/hashicorp/google-beta v5.25.0
Your version of Terraform is out of date! The latest version
is 1.9.3. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration Files
module "composer" {
source = "terraform-google-modules/composer/google//modules/create_environment_v2"
project_id = var.project
region = var.region
network_project_id = var.network_vpc_project
network = var.network_vpc_name
subnetwork = var.subnetwork_vpc_name
composer_service_account = var.service_account
environment_size = var.environment_size
airflow_config_overrides = local.airflow_config_overrides
composer_env_name = var.composer_name
image_version = local.image_version
pypi_packages = local.pypi_packages
scheduler = local.scheduler
web_server = local.webserver
worker = local.worker
labels = {
"owner" = local.owner_name,
"env" = var.env_name
}
env_variables = var.env_variables
}
import {
id = "projects/${local.project}/locations/${var.region}/environments/composer-prod"
to = module.composer.google_composer_environment.composer_env
}
Debug Output
https://gist.github.com/jlenuffgsoi/7f7c8960d2cbf6959d1b47cea6ced2ef
Expected Behavior
The resource should be imported successfully.
Actual Behavior
Terraform crashes when importing google_composer_environment resource :
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
Please report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version, the stack trace
shown below, and any additional information which may help replicate the issue.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Steps to Reproduce
terraform init
terraform plan
Additional Context
No response
References
No response
Terraform Version
Terraform v1.9.2 on linux_amd64 + provider registry.terraform.io/hashicorp/google v5.25.0 + provider registry.terraform.io/hashicorp/google-beta v5.25.0 Your version of Terraform is out of date! The latest version is 1.9.3. You can update by downloading from https://www.terraform.io/downloads.htmlTerraform Configuration Files
Debug Output
https://gist.github.com/jlenuffgsoi/7f7c8960d2cbf6959d1b47cea6ced2ef
Expected Behavior
The resource should be imported successfully.
Actual Behavior
Terraform crashes when importing google_composer_environment resource :
Steps to Reproduce
terraform init
terraform plan
Additional Context
No response
References
No response