0

while running terraform script to launch aws instance getting this error

Error: Invalid AWS Region: us-west-2a

  on provider.tf line 1, in provider "aws":
   1: provider "aws" {

This is my provider.tf

provider "aws" {
  region  = "${var.region}"
  version = "~> 2.0"
}

can anybody help out?

1 Answer 1

1

us-west-2a is an availability zone inside the us-west-2 region. You need to fix your var.region value.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.