diff --git a/main.tf b/main.tf index e04f160..59bff64 100644 --- a/main.tf +++ b/main.tf @@ -39,6 +39,7 @@ data "aws_ami" "ubuntu" { resource "aws_instance" "web" { ami = data.aws_ami.ubuntu.id + subnet_id = "subnet-0af26127322faf38a" instance_type = "t2.micro" vpc_security_group_ids = [aws_security_group.web-sg.id]