mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
updates terraform test
This commit is contained in:
parent
68fb056099
commit
95576fd66f
2 changed files with 13 additions and 12 deletions
|
@ -1,9 +1,8 @@
|
||||||
resource "aws_instance" "bad" {
|
resource "aws_instance" "instanceWithNoVpc" {
|
||||||
ami = "ami-0ff8a91507f77f867"
|
ami = "some-id"
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.micro"
|
||||||
associate_public_ip_address = true
|
|
||||||
|
|
||||||
ebs_block_device {
|
tags = {
|
||||||
encrypted = true
|
Name = "HelloWorld"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
resource "aws_instance" "good" {
|
resource "aws_instance" "instanceWithVpc" {
|
||||||
ami = "ami-0ff8a91507f77f867"
|
ami = "some-id"
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.micro"
|
||||||
associate_public_ip_address = false
|
|
||||||
|
|
||||||
ebs_block_device {
|
vpc_security_group_ids = ["sg-12345678901234567"]
|
||||||
encrypted = true
|
subnet_id = "subnet-12345678901234567"
|
||||||
|
|
||||||
|
tags = {
|
||||||
|
Name = "HelloWorld"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue