Remove provider blocks from child module to support for_each
Some checks failed
Code Quality & Security Scan / TFLint (push) Failing after 36s
Code Quality & Security Scan / Tfsec Security Scan (push) Has been skipped
Code Quality & Security Scan / Checkov Security Scan (push) Has been skipped
Code Quality & Security Scan / Terraform Validate (push) Has been skipped
Code Quality & Security Scan / SonarQube Trigger (push) Has been skipped

- Removed provider blocks for Vault and Ansible from provider.tf
- Module now accepts provider configuration from parent module
- Updated Vault provider version from ~> 4.0 to ~> 5.3 for compatibility
- Fixes: Module is incompatible with count, for_each, and depends_on error
This commit is contained in:
Patrick de Ruiter 2025-11-10 22:04:31 +01:00
parent 3af1102377
commit 003572082e
Signed by: pderuiter
GPG Key ID: 5EBA7F21CF583321

View File

@ -8,23 +8,7 @@ terraform {
}
vault = {
source = "hashicorp/vault"
version = "~> 4.0"
version = "~> 5.3"
}
}
}
# Configure the Vault provider
provider "vault" {
address = var.vault_address
auth_login {
path = "auth/approle/login"
parameters = {
role_id = var.role_id
secret_id = var.secret_id
}
}
}
# Ansible Provider
provider "ansible" {
}