updates terraform test

This commit is contained in:
Cesar Rodriguez 2020-08-22 21:52:39 -04:00
parent 68fb056099
commit 95576fd66f
2 changed files with 13 additions and 12 deletions

View file

@ -1,9 +1,8 @@
resource "aws_instance" "bad" {
ami = "ami-0ff8a91507f77f867"
instance_type = "t2.small"
associate_public_ip_address = true
resource "aws_instance" "instanceWithNoVpc" {
ami = "some-id"
instance_type = "t2.micro"
ebs_block_device {
encrypted = true
tags = {
Name = "HelloWorld"
}
}

View file

@ -1,9 +1,11 @@
resource "aws_instance" "good" {
ami = "ami-0ff8a91507f77f867"
instance_type = "t2.small"
associate_public_ip_address = false
resource "aws_instance" "instanceWithVpc" {
ami = "some-id"
instance_type = "t2.micro"
ebs_block_device {
encrypted = true
vpc_security_group_ids = ["sg-12345678901234567"]
subnet_id = "subnet-12345678901234567"
tags = {
Name = "HelloWorld"
}
}