Skip to content

Commit 170306c

Browse files
authored
Update main.tf
1 parent fdbcdad commit 170306c

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

dev-vpc/main.tf

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "5.24.0"
5+
version = "~> 5.0"
66
}
77
}
8-
backend "s3" {
9-
bucket = "digger-states-test" # Change if a different S3 bucket name was used for the backend
10-
/* Un-comment to use DynamoDB state locking
11-
dynamodb_table = "digger-locktable-quickstart-aws" # Change if a different DynamoDB table name was used for backend
12-
*/
13-
key = "terraform/state"
14-
region = "us-east-1"
15-
}
168
}
179

18-
resource "aws_ssm_parameter" "foo" {
19-
name = "/dev/vpc"
20-
type = "String"
21-
value = "10.10.10.0/32"
10+
provider "aws" {
11+
region = "us-east-1"
2212
}
2313

24-
resource "null_resource" "test2" {}
14+
# This EC2 instance should trigger the Rego deny rule
15+
resource "aws_instance" "test" {
16+
ami = "ami-0c55b159cbfafe1f0" # Amazon Linux 2 AMI
17+
instance_type = "t2.micro"
18+
}

0 commit comments

Comments
 (0)