Skip to content

Instantly share code, notes, and snippets.

@andrei-dascalu
Created January 29, 2023 14:30

Revisions

  1. andrei-dascalu created this gist Jan 29, 2023.
    30 changes: 30 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    ╰─ TF_LOG=trace terraform init ─╯
    2023-01-29T16:29:09.899+0200 [INFO] Terraform version: 1.3.7
    2023-01-29T16:29:09.899+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
    2023-01-29T16:29:09.899+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.15.0
    2023-01-29T16:29:09.899+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
    2023-01-29T16:29:09.899+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
    2023-01-29T16:29:09.899+0200 [DEBUG] using github.com/zclconf/go-cty v1.12.1
    2023-01-29T16:29:09.899+0200 [INFO] Go runtime version: go1.19.4
    2023-01-29T16:29:09.899+0200 [INFO] CLI args: []string{"terraform", "init"}
    2023-01-29T16:29:09.899+0200 [TRACE] Stdout is a terminal of width 186
    2023-01-29T16:29:09.899+0200 [TRACE] Stderr is a terminal of width 186
    2023-01-29T16:29:09.899+0200 [TRACE] Stdin is a terminal
    2023-01-29T16:29:09.899+0200 [DEBUG] Attempting to open CLI config file: <user>/.terraformrc
    2023-01-29T16:29:09.899+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
    2023-01-29T16:29:09.900+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
    2023-01-29T16:29:09.900+0200 [DEBUG] ignoring non-existing provider search directory <user>/.terraform.d/plugins
    2023-01-29T16:29:09.900+0200 [DEBUG] ignoring non-existing provider search directory <user>/Library/Application Support/io.terraform/plugins
    2023-01-29T16:29:09.900+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
    2023-01-29T16:29:09.900+0200 [INFO] CLI command args: []string{"init"}
    There are some problems with the configuration, described below.

    The Terraform configuration must be valid before initialization so that
    Terraform can determine which modules and providers need to be installed.
    │ Error: Invalid expression
    │ on asg.tf line 100, in resource "aws_autoscaling_group" "cluster":
    │ 100: ignore_changes = local.ignored_lifecycle_events
    │ A static list expression is required.