title: Terraform and GCP composer setup
body: <p>I'm trying to deploy GCP composer using terraform but got the issue -&gt;</p>
  <p>Error: Unsupported block type on composer.tf line 43, in resource &quot;google_composer_environment&quot; &quot;test&quot;: 34:     encryption_config {
  Blocks of type &quot;encryption_config&quot; are not expected here.</p>
  <p>Here is composer.tf file:</p>
  <pre><code>resource &quot;google_composer_environment&quot; &quot;test&quot; {
    name   = &quot;dwh_composer&quot;
    region = local.default_region
    config {
      node_count = 3
      node_config {
        zone         = local.default_zone
        machine_type = &quot;e2-medium&quot;
        network    = google_compute_network.test.id
        subnetwork = google_compute_subnetwork.test.id
        service_account = google_service_account.test.name
      }
      software_config {
        image_version = &quot;composer-1.17.0-preview.9-airflow-2.1.1&quot;
        python_version = &quot;3&quot;
        airflow_config_overrides = {
          core-load_example = &quot;True&quot;
        }
        pypi_packages = {
          numpy = &quot;&quot;
          scipy = &quot;==1.1.0&quot;
        }
        env_variables = {
          FOO = &quot;bar&quot;
          R1 = &quot;test5&quot;
          evvv_qqq_d = &quot;test1&quot;
          M1 = &quot;test3&quot;
          AIRFLOW-3 = &quot;test2&quot;
        }
      }
      private_environment_config {
        enable_private_endpoint = true
      }
      encryption_config {
        kms_key_name = google_kms_crypto_key.dwh_composer_crypto_key.name
      }
    }
  }
  
  resource &quot;google_kms_key_ring&quot; &quot;data_warehouse_kms_keyring&quot; {
    name     = &quot;data-warehouse-kms-keyring&quot;
    location = &quot;europe-west4&quot;
  }
  
  resource &quot;google_kms_crypto_key&quot; &quot;dwh_composer_crypto_key&quot; {
    name            = &quot;dwh-composer-crypto-key&quot;
    key_ring        = google_kms_key_ring.data_warehouse_kms_keyring.self_link
  }
  </code></pre>
  <p>Here is main.tf file:</p>
  <pre><code>terraform {
    required_version = &quot;1.0.0&quot;
  
    backend &quot;gcs&quot; {
      bucket = &quot;terraform-data-warehouse&quot;
      prefix = &quot;gcp/data-warehouse/composer&quot;
    }
  
    required_providers {
      google = {
        source  = &quot;hashicorp/google&quot;
        version = &quot;~&gt; 3.70.0&quot;
      }
      google-beta = {
        source  = &quot;hashicorp/google-beta&quot;
        version = &quot;~&gt; 3.70.0&quot;
      }
    }
  }
  
  # -- Providers
  
  provider &quot;google&quot; {
    project = local.project_id
  }
  
  provider &quot;google-beta&quot; {
    project = local.project_id
  }
  
  # -- common public state
  
  data &quot;terraform_remote_state&quot; &quot;common&quot; {
    backend = &quot;gcs&quot;
  
    config = {
      bucket = &quot;terraform-public&quot;
      prefix = &quot;common&quot;
    }
  }
  
  # -- Local variables
  locals {
    default_zone = &quot;europe-west4-a&quot;
    default_region = &quot;europe-west1&quot;
    project_id = &quot;my-project&quot;
    team_group = data.terraform_remote_state.common.outputs.teams.data_warehouse.group
    default_multi_region = &quot;EU&quot;
  }
  </code></pre>
  <p>Could you help me?</p>