Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Unable to run terragrunt validate with remote_state init #2

@fproulx-boostsecurity

Description

@fproulx-boostsecurity

Expected Behavior

I expect that I can run terragrunt run-all validate in disable_init = true mode

Actual Behavior

I get an error saying that GCS backend must be init

 Error: Backend initialization required, please run "terraform init"
│
│ Reason: Initial configuration of the requested backend "gcs"
│
│ The "backend" is the interface that Terraform uses to store state,
│ perform operations, etc. If this message is showing up, it means that the
│ Terraform configuration you're using is using a custom configuration for
│ the Terraform backend.
│
│ Changes to backend configurations require reinitialization. This allows
│ Terraform to set up the new configuration, copy existing state, etc. Please
│ run
│ "terraform init" with either the "-reconfigure" or "-migrate-state" flags
│ to
│ use the current configuration.
│
│ If the change reason above is incorrect, please verify your configuration
│ hasn't changed and try again. At this point, no changes to your existing
│ configuration or state have been made.

Steps to Reproduce the Problem

dirs -c && cd $HOME/sandbox && rm -rf simple-anthos-installer && git clone git@github.com:GoogleCloudPlatform/simple-anthos-installer.git && export TF_IN_AUTOMATION=1 TF_INPUT=false TF_VAR_project_id=a TERRAGRUNT_DISABLE_INIT=true PROJECT_ID=b ENVIRONMENT_NAME=c GCP_REGION=us-east1 GCP_AZS=us-east1-b,us-east1-c,us-east1-d AWS_REGION=us-east-t1 && pushd simple-anthos-installer && pushd terragrunt/gke-gcp && terragrunt run-all validate --terragrunt-non-interactive && popd && pushd terragrunt/eks-aws && terragrunt run-all validate --terragrunt-non-interactive && popd && checkov -d . && popd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions