Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.

 Terraform Error : 

Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.

Sol:  You can provide subnet_id to fix this issue, that will associate VPC with subnet_id

resource "aws_instance" "goanalytics-test" {

  ami           = "ami-087c17d1fe0178315"

  instance_type = "t2.micro"

  subnet_id     = "subnet-006c710787ff0263b"

}


Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment