Skip to content

Error message: Execution not found druing connections creation #163

@gartemiev

Description

@gartemiev

TL;DR

I get constantly these errors during using connection module of cloudcomposer:

`

│ Error: local-exec provisioner error

│ with module.airflow_connections["tableau_online"].module.gcloud.null_resource.run_command[0],
│ on .terraform/modules/airflow_connections.gcloud/main.tf line 232, in resource "null_resource" "run_command":
│ 232: provisioner "local-exec" {

│ Command has been started. execution_id=0844c598-fa5b-411f-9e15-a51a4da8f94a
│ Use ctrl-c to interrupt the command
│ ERROR: Error message: Execution not found.
│ ERROR: Command exit code: 1
│ ERROR: gcloud crashed (NameError): name 'exit' is not defined

│ If you would like to report this issue, please run the following command:
│ gcloud feedback

│ To check gcloud for common problems, please run the following command:
│ gcloud info --run-diagnostics
`

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

data "google_secret_manager_secret_version" "secrets" {
  for_each = var.deploy ? data.terraform_remote_state.composer_infra.outputs.connections : {}
  secret   = "${data.terraform_remote_state.composer_infra.outputs.composer_env_name}-${each.key}"
}

module "airflow_connections" {
  source = "terraform-google-modules/composer/google//modules/airflow_connection"

  for_each          = var.deploy ? data.terraform_remote_state.composer_infra.outputs.connections : {}
  version           = "5.2"
  project_id        = var.gcp_project
  composer_env_name = data.terraform_remote_state.composer_infra.outputs.composer_env_name
  region            = var.gcp_region
  id                = each.key
  type              = each.value.type
  host              = try(each.value.host, null)
  port              = try(each.value.port, null)
  schema            = try(each.value.schema, null)
  login             = try(each.value.login, null)
  password          = try((each.value.password == "gcp-secret" ? data.google_secret_manager_secret_version.secrets[each.key].secret_data : null), null)
  extra             = try((each.value.extra == "gcp-secret" ? data.google_secret_manager_secret_version.secrets[each.key].secret_data : each.value.extra), null)
}

Terraform Version

v1.6.6

Terraform Provider Versions

terraform {
  required_version = ">= 1.6"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.35.0"
    }
  }
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions