From 7ce9ed564ec31bc89960f4f2df3eb7b43cb466cc Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 7 May 2024 23:28:46 -0400 Subject: [PATCH] enforce that instance is running --- hosts/arrow/aws/ec2.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/arrow/aws/ec2.tf b/hosts/arrow/aws/ec2.tf index b4019d1..869ecae 100644 --- a/hosts/arrow/aws/ec2.tf +++ b/hosts/arrow/aws/ec2.tf @@ -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 }