diff --git a/.automation/test/terraform_terrascan/bad/terraform_bad_1.tf b/.automation/test/terraform_terrascan/bad/terraform_bad_1.tf index 57b891dc..2b2788b1 100644 --- a/.automation/test/terraform_terrascan/bad/terraform_bad_1.tf +++ b/.automation/test/terraform_terrascan/bad/terraform_bad_1.tf @@ -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" } } diff --git a/.automation/test/terraform_terrascan/good/terraform_good_1.tf b/.automation/test/terraform_terrascan/good/terraform_good_1.tf index 59d24f7e..7d4e8853 100644 --- a/.automation/test/terraform_terrascan/good/terraform_good_1.tf +++ b/.automation/test/terraform_terrascan/good/terraform_good_1.tf @@ -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" } }