DEV Community


Discussion on: [Terraform] Deploy EC2 Instance in Minutes

jisbruzzi profile image
José Ignacio Sbruzzi

This article doesn't cover exposing the instance to the internet. Just wasted 2 hours trying to ssh into the instance I just created :(

A more complete article can be found here:

aakatev profile image
Artem Author • Edited

Good catch! I forgot to associate security group with the instance. This should be added to instance resource:

    vpc_security_group_ids = [
Enter fullscreen mode Exit fullscreen mode

I fixed the article too!