Open yorinasub17 opened 5 years ago
Related to https://github.com/gruntwork-io/terragrunt/issues/605
AutoInit does not appear to detect when the provider version changes in a module.
# /modules/app/main.tf provider "aws" { region = "us-west-2" version = "~> 1.43.0" } data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical } resource "aws_instance" "web" { ami = "${data.aws_ami.ubuntu.id}" instance_type = "t2.micro" tags { Name = "yori-test" } }
# /live/app/terraform.tfvars terragrunt = { terraform { source = "../../modules/app" } }
terragrunt plan
terraform init
1.42.0
terraform init runs because the module source changed.
terraform init doesn't run, so you get an error indicating provider version mismatch.
Might be a dupe of https://github.com/gruntwork-io/terragrunt/issues/388
Related to https://github.com/gruntwork-io/terragrunt/issues/605
AutoInit does not appear to detect when the provider version changes in a module.
Minimal example:
Repro steps
terragrunt plan
. This will runterraform init
and download the provider version indicated.1.42.0
)terragrunt plan
.Expected Behavior:
terraform init
runs because the module source changed.Actual Behavior
terraform init
doesn't run, so you get an error indicating provider version mismatch.