Skip to content

Commit

Permalink
run terraform validate on example file
Browse files Browse the repository at this point in the history
  • Loading branch information
lhitchon committed Mar 7, 2018
1 parent 515c5ac commit b2140c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
files/.terraform/*
21 changes: 13 additions & 8 deletions files/terraform.hcl → files/terraform.tf
@@ -1,3 +1,6 @@
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "first" {
ami = "ami-f2d3638a"
instance_type = "t2.micro"
Expand Down Expand Up @@ -30,12 +33,14 @@ resource "aws_iam_role" "role1" {
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "*",
"Principal": { "Service": "ec2.amazonaws.com" }
"Effect": "Allow"
"Resources": "*"
}
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
EOF
Expand All @@ -48,8 +53,8 @@ resource "aws_iam_role" "role2" {
"Statement": [
{
"Action": "*",
"Principal": { "Service": "ec2.amazonaws.com" }
"Effect": "Allow"
"Principal": { "Service": "ec2.amazonaws.com" },
"Effect": "Allow",
"Resources": "*"
}
]
Expand Down

0 comments on commit b2140c8

Please sign in to comment.