'Terraform : Invalid provider configuration for third-party providers
I am facing issue to add third-party terraform provider, this is link I am following wiz. I added wiz provider in main.tf and root module as well. I am not sure what am I missing here. I have following code structure :
/root
/infra-module
--> wiz-module
- main.tf
//required_providers{//aws //wiz}
- providers.tf
- data.tf
- variables.tf
/terraform-deplyment
- main.tf
- providers.tf
//required_providers{//wiz}
//provider "wiz" {//clientid and secret}
- data.tf
//aws-secret-manager //secret
- variables.tf
//clientid
- terraform.tfvars
Providers are added in "terraform-deployment" as follows,
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
configuration_aliases = [ aws , aws.management]
}
wiz = {
source = "tf.app.wiz.io/wizsec/wiz"
}
}
}
provider "wiz" {
client_id = var.wiz_clientid
secret = data.aws_secretsmanager_secret.get_wiz_secert.id
alias = //tried adding alias
}
Thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

