Quando dou o comando terraform apply ele gera esse erro
Arquivo main.tf
provider "aws" {
version = "~> 3.0"
region = "us-east-1"
}
resource "aws_instance" "dev" {
count = 3
ami = "ami-0747bdcabd34c712a"
instance_type = "t2.micro"
key_name = "terraform-aws"
tags = {
Name = "dev${count.index}"
}
}
Erro
│ Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.
│ status code: 400, request id: 6a5d7e3e-caf9-4780-91e5-107ac25552c6
│
│ with aws_instance.dev_tiago[1],
│ on main.tf line 6, in resource "aws_instance" "dev":
│ 6: resource "aws_instance" "dev" {