QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

Invalid AWS Region: us-west-2a in subnet #972

Closed thotagopi closed 3 years ago

thotagopi commented 3 years ago

Hi sir whenever I creating a subnet I got this error. Invalid AWS Region: us-west-2 this is my script

web

resource "aws_subnet" "web" { vpc_id = aws_vpc.myvpc.id cidr_block = "192.168.0.0/24" availability_zone = "us-west-2a" tags = { Name = "web" }

}

provider "aws"{ region ="us-west-2" }

thotagopi commented 3 years ago

thankyou Santosh