Skip to content

Commit 66d2052

Browse files
authored
Update main.tf
1 parent 587e0e4 commit 66d2052

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

dev-ec2/main.tf

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +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"
10-
key = "demo-ee/features/state"
11-
region = "us-east-1"
12-
}
138
}
149

1510
provider "aws" {
16-
region = "us-east-1" # Replace with your desired AWS region
11+
region = "us-east-1"
1712
}
1813

19-
20-
resource "aws_ssm_parameter" "foo" {
21-
name = "/dev/ec2"
22-
type = "String"
23-
value = "ec2 instance"
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"
2418
}
25-

0 commit comments

Comments
 (0)