C:\terraform>terraform plan ╷ │ Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid. │ status code: 403, request id: 74afeb30-38c3-4f3e-812d-e2c67e688964 │ │ with provider["registry.terraform.io/hashicorp/aws"], │ on main.tf line 12, in provider "aws": │ 12: provider "aws" {
Meu código está nesse estado
terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 3.27" } }
required_version = ">= 0.14.9" }
provider "aws" { profile = "default" region = "us-west-2" }
resource "aws_instance" "dev" { count = 3 ami = "ami-a940cb939351ccca" instance_type = "t2.micro" key_name = "terraform-aws" tags = { Name = "dev${count.index}" } }
│ ╵