Running with gitlab-runner 14.2.0 (58ba2b95)
  on Froggit-Runner-froggit-prd-gitlab-runner-gqzzeorc V5jqswK4
section_start:1644157539:prepare_executor
Preparing the "docker" executor
Using Docker executor with image registry.gitlab.com/gitlab-org/terraform-images/stable:latest ...
Pulling docker image registry.gitlab.com/gitlab-org/terraform-images/stable:latest ...
Using docker image sha256:faef5c6c20b5a2d785b093b74513e47fde830fba993ca8d36bb170d5946faec3 for registry.gitlab.com/gitlab-org/terraform-images/stable:latest with digest registry.gitlab.com/gitlab-org/terraform-images/stable@sha256:7f666f9f50df4b24bbb240ebee18d042ac3a19e5924786483d6d3967d482889c ...
section_end:1644157543:prepare_executor
section_start:1644157543:prepare_script
Preparing environment
Running on runner-v5jqswk4-project-341-concurrent-0 via 8b4a2daf3c05...
section_end:1644157544:prepare_script
section_start:1644157544:get_sources
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/bejean-developpement/infraascode/elasticcloudwithgcp/.git/
Checking out bf2cb911 as feature/elastic-conference...
Removing gcp-sa.json
Removing manifests/elastic/.terraform/
Removing manifests/gke/.terraform/
Removing pscConnectionId.env

Skipping Git submodules setup
section_end:1644157546:get_sources
section_start:1644157546:restore_cache
Restoring cache
Checking cache for elastic...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. 
Successfully extracted cache
Checking cache for gke...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. 
Successfully extracted cache
section_end:1644157548:restore_cache
section_start:1644157548:download_artifacts
Downloading artifacts
Downloading artifacts for destroy-psc (27965)...
Downloading artifacts from coordinator... ok        id=27965 responseStatus=200 OK token=gxLsS2Qb
section_end:1644157549:download_artifacts
section_start:1644157549:step_script
Executing "step_script" stage of the job script
Using docker image sha256:faef5c6c20b5a2d785b093b74513e47fde830fba993ca8d36bb170d5946faec3 for registry.gitlab.com/gitlab-org/terraform-images/stable:latest with digest registry.gitlab.com/gitlab-org/terraform-images/stable@sha256:7f666f9f50df4b24bbb240ebee18d042ac3a19e5924786483d6d3967d482889c ...
$ export TF_VAR_psc_connection_id=$(cat ${CI_PROJECT_DIR}/pscConnectionId.env | grep GCP_PSC_CONNECTION_ID | cut -d = -f2) # collapsed multi-line command
$ gitlab-terraform init # collapsed multi-line command

Initializing the backend...

Successfully configured the backend "http"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Finding elastic/ec versions matching "0.3.0"...
- Installing elastic/ec v0.3.0...
- Installed elastic/ec v0.3.0 (signed by a HashiCorp partner, key ID 7FE579EDEC6DAA7B)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

Initializing the backend...

Successfully configured the backend "http"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Reusing previous version of elastic/ec from the dependency lock file
- Using previously-installed elastic/ec v0.3.0

Terraform has been successfully initialized!
ec_deployment_traffic_filter.traffic-filter: Refreshing state... [id=50e007608852400fa853fd66a1f477d1]
ec_deployment.elasticsearch_cluster: Refreshing state... [id=e7acb192313b9f7b1c7a540902e48d53]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # ec_deployment.elasticsearch_cluster will be destroyed
  - resource "ec_deployment" "elasticsearch_cluster" {
      - alias                  = "elastic-for-gke" -> null
      - deployment_template_id = "gcp-storage-optimized" -> null
      - elasticsearch_password = (sensitive value)
      - elasticsearch_username = "elastic" -> null
      - id                     = "e7acb192313b9f7b1c7a540902e48d53" -> null
      - name                   = "elastic-for-gke" -> null
      - region                 = "gcp-europe-west1" -> null
      - tags                   = {} -> null
      - traffic_filter         = [
          - "50e007608852400fa853fd66a1f477d1",
        ] -> null
      - version                = "7.16.3" -> null

      - elasticsearch {
          - autoscale      = "false" -> null
          - cloud_id       = "elastic-for-gke:ZXVyb3BlLXdlc3QxLmdjcC5jbG91ZC5lcy5pbyQ0M2E1MDMxOWYxODA0ODE5YWZiMmYzMTBiNTRhNTQ2YyQyYTE4YjNjN2QyMTA0MTg1YTZmZTkzODc0ODNmNjgwMw==" -> null
          - http_endpoint  = "http://43a50319f1804819afb2f310b54a546c.europe-west1.gcp.cloud.es.io:9200" -> null
          - https_endpoint = "https://43a50319f1804819afb2f310b54a546c.europe-west1.gcp.cloud.es.io:9243" -> null
          - ref_id         = "main-elasticsearch" -> null
          - region         = "gcp-europe-west1" -> null
          - resource_id    = "43a50319f1804819afb2f310b54a546c" -> null

          - topology {
              - config                    = [] -> null
              - id                        = "hot_content" -> null
              - instance_configuration_id = "gcp.es.datahot.n2.68x10x45" -> null
              - node_roles                = [
                  - "data_content",
                  - "data_hot",
                  - "ingest",
                  - "master",
                  - "remote_cluster_client",
                  - "transform",
                ] -> null
              - size                      = "1g" -> null
              - size_resource             = "memory" -> null
              - zone_count                = 1 -> null

              - autoscaling {
                  - max_size          = "128g" -> null
                  - max_size_resource = "memory" -> null
                }
            }

          - trust_account {
              - account_id      = "1643261321" -> null
              - trust_all       = true -> null
              - trust_allowlist = [] -> null
            }
        }

      - kibana {
          - elasticsearch_cluster_ref_id = "main-elasticsearch" -> null
          - http_endpoint                = "http://2a18b3c7d2104185a6fe9387483f6803.europe-west1.gcp.cloud.es.io:9200" -> null
          - https_endpoint               = "https://2a18b3c7d2104185a6fe9387483f6803.europe-west1.gcp.cloud.es.io:9243" -> null
          - ref_id                       = "main-kibana" -> null
          - region                       = "gcp-europe-west1" -> null
          - resource_id                  = "2a18b3c7d2104185a6fe9387483f6803" -> null

          - topology {
              - instance_configuration_id = "gcp.kibana.n2.68x32x45" -> null
              - size                      = "1g" -> null
              - size_resource             = "memory" -> null
              - zone_count                = 1 -> null
            }
        }
    }

  # ec_deployment_traffic_filter.traffic-filter will be destroyed
  - resource "ec_deployment_traffic_filter" "traffic-filter" {
      - id                 = "50e007608852400fa853fd66a1f477d1" -> null
      - include_by_default = false -> null
      - name               = "traffic-filter" -> null
      - region             = "gcp-europe-west1" -> null
      - type               = "gcp_private_service_connect_endpoint" -> null

      - rule {
          - id     = "4787858b0bf049e0a51c5dcd689fda28" -> null
          - source = "48685209879077896" -> null
        }
    }

Plan: 0 to add, 0 to change, 2 to destroy.
ec_deployment.elasticsearch_cluster: Destroying... [id=e7acb192313b9f7b1c7a540902e48d53]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 10s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 20s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 30s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 40s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 50s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m0s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m10s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m20s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m30s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m40s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 1m50s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 2m0s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 2m10s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 2m20s elapsed]
ec_deployment.elasticsearch_cluster: Still destroying... [id=e7acb192313b9f7b1c7a540902e48d53, 2m30s elapsed]
ec_deployment.elasticsearch_cluster: Destruction complete after 2m38s
ec_deployment_traffic_filter.traffic-filter: Destroying... [id=50e007608852400fa853fd66a1f477d1]
ec_deployment_traffic_filter.traffic-filter: Destruction complete after 0s

Destroy complete! Resources: 2 destroyed.
section_end:1644157715:step_script
section_start:1644157715:archive_cache
Saving cache for successful job
Creating cache elastic...
/builds/bejean-developpement/infraascode/elasticcloudwithgcp/manifests/elastic/.terraform: found 12 matching files and directories 
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally. 
Created cache
Creating cache gke...
/builds/bejean-developpement/infraascode/elasticcloudwithgcp/manifests/gke/.terraform: found 9 matching files and directories 
Archive is up to date!                             
Created cache
section_end:1644157718:archive_cache
section_start:1644157718:cleanup_file_variables
Cleaning up file based variables
section_end:1644157719:cleanup_file_variables
Job succeeded