enforce that instance is running

This commit is contained in:
Noah Masur 2024-05-07 23:28:46 -04:00
parent 8074276643
commit 7ce9ed564e
No known key found for this signature in database

View File

@ -13,6 +13,11 @@ resource "aws_instance" "instance" {
}
}
resource "aws_ec2_instance_state" "instance" {
instance_id = aws_instance.instance.id
state = "running"
}
data "aws_vpc" "vpc" {
default = true
}