mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
enforce that instance is running
This commit is contained in:
parent
8074276643
commit
7ce9ed564e
@ -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" {
|
data "aws_vpc" "vpc" {
|
||||||
default = true
|
default = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user