KensoDev / terraform-example-with-modules

Example of how to use terraform modules using the two-ties example from terraform repository
MIT License
23 stars 17 forks source link

bug in base/outputs #2

Open brian-provenzano opened 7 years ago

brian-provenzano commented 7 years ago

Just a heads up that in base/outputs.tf there is a minor bug/typo:

output "aws_key_pair_id" {
  source "${aws_key_pair.id.auth.id}"
}

Should be this:

output "aws_key_pair_id" {
  value = "${aws_key_pair.id.auth.id}"
}
KensoDev commented 7 years ago

Thank you!

brian-provenzano commented 7 years ago

Haha - no problem. BTW thanks for putting this together! Its been very helpful while trying to pick up TF.

I do have one question :

I see that you define the aws provider block in the base module and then pass in the region from a variable defined in the main "web" dir/env variables file. This looks good since it allows for definition of provider in one place so it can be reused. However, when I run tf plan on this I am still prompted for region interactively. Any reason why this is happening? Not sure if its a bug in TF (I'm using latest 0.9.11) or I'm not understanding something but figured I'd ask.