Merge pull request #69 from github/issue-68

Add Terraform tests
This commit is contained in:
Lukas Gravley 2020-03-12 10:48:58 -05:00 committed by GitHub
commit 38da61e2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View file

View file

@ -0,0 +1,3 @@
provider "aws" {
region = "us-east-1"
}

View file

@ -0,0 +1,4 @@
resource "aws_instance" "bad" {
ami = "ami-0ff8a91507f77f867"
instance_type = "t.2xlarge" # invalid type!
}

View file

@ -0,0 +1,4 @@
resource "aws_instance" "good" {
ami = "ami-0ff8a91507f77f867"
instance_type = "t2.small"
}