My configuration file looks like below
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "eu-west-2"
version = "~> 1.10"
}
module "consul" {
source = "hashicorp/consul/aws"
version = "0.1.2"
aws_region = "eu-west-2"
num_servers = "3"
}
When i run #terraform.exe plan I get the following error on Windows. Note i entered the aws_key and secret_key as part of command line input.
Error: Error refreshing state: 1 error(s) occurred:
I dont know how to fix this. So far i have tried #terraform.exe init -upgrade to ensure the aws provider and consul module provider are current.