how to create ec2 by using existing vpc/subnet/security group?
I have terraform scripts and run it successfully on default vpc/security groups, but got the following errors in the company’s dev, │ Error: error creating Security Group (vpc-ssh): VPCIdNotSpecified: No default VPC for this user
│ status code: 400, request id: e933566e-68f7-4f46-8fa8-65c40fb746de
│
│ with aws_security_group.vpc-ssh,
│ on c3-security-groups.tf line 2, in resource “aws_security_group” “vpc-ssh”:
│ 2: resource “aws_security_group” “vpc-ssh” {
│
╵
╷
│ Error: error creating Security Group (vpc-web): VPCIdNotSpecified: No default VPC for this user
│ status code: 400,
I cannot create a default vpc and subnet/security, how to create ec2 by using existing vpc/subnet/security group?