I'm new to Terraform but I have some kind of weird issue where running the same command, without any code changes, I sometimes get prompted to enter the 'region' for the AWS provider and sometimes not.
Any ideas what might be happening.
$ terraform plan -var-file=terraform.tfvars
Refreshing Terraform state prior to plan...
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.
Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.
+ module.network.vpc.aws_vpc.environment
default_network_acl_id: "" => "<computed>"
default_security_group_id: "" => "<computed>"
dhcp_options_id: "" => "<computed>"
enable_classiclink: "" => "<computed>"
enable_dns_hostnames: "" => "<computed>"
enable_dns_support: "" => "<computed>"
main_route_table_id: "" => "<computed>"
+ module.network.subnet.aws_subnet.private-subnet.0
availability_zone: "" => "us-west-1a"
map_public_ip_on_launch: "" => "0"
tags.#: "" => "1"
tags.Name: "" => "private-us-west-1a-sn"
vpc_id: "" => "${var.vpc_id}"
+ module.network.subnet.aws_subnet.private-subnet.1
availability_zone: "" => "us-west-1b"
map_public_ip_on_launch: "" => "0"
tags.#: "" => "1"
tags.Name: "" => "private-us-west-1b-sn"
vpc_id: "" => "${var.vpc_id}"
Plan: 3 to add, 0 to change, 0 to destroy.
I'm on windows (using a linux shell, but same occurs in a standard command prompt). I can provide the relevant fragments if required.
Just not sure what's helpful given the same issue doesn't happen all the time. Is this a bug?