#terraform #terragrunt
Вопрос:
У меня есть следующее репозиторий, который содержит как модули, так и живые папки, необходимые terragrunt
├── non-prod
│ ├── account.hcl
│ └── us-east-1
│ ├── qa
│ │ ├── env.hcl
│ │ ├── mysql
│ │ │ └── terragrunt.hcl
│ │ └── webserver-cluster
│ │ └── terragrunt.hcl
│ ├── region.hcl
│ └── stage
│ ├── env.hcl
│ ├── mysql
│ │ └── terragrunt.hcl
│ └── webserver-cluster
│ └── terragrunt.hcl
├── prod
│ ├── account.hcl
│ └── us-east-1
│ ├── prod
│ │ ├── env.hcl
│ │ ├── mysql
│ │ │ └── terragrunt.hcl
│ │ └── webserver-cluster
│ │ └── terragrunt.hcl
│ └── region.hcl
└── terragrunt.hcl
Я вбегаю terragrunt run-all plan
non-prod
и работаю, как и ожидалось.
Затем я включаю компакт prod
-диск . Та же команда завершается ошибкой со следующей ошибкой
INFO[0007] ╷
│ Error: Could not load plugin
│
│
│ Plugin reinitialization required. Please run "terraform init".
│
│ Plugins are external binaries that Terraform uses to access and manipulate
│ resources. The configuration provided requires plugins which can't be
│ located,
│ don't satisfy the version constraints, or are otherwise incompatible.
│
│ Terraform automatically discovers provider requirements from your
│ configuration, including providers used in child modules. To see the
│ requirements and constraints, run "terraform providers".
│
│ failed to instantiate provider "registry.terraform.io/hashicorp/aws" to
│ obtain schema: unknown provider "registry.terraform.io/hashicorp/aws"
│
это почему?