superlint/test/linters/checkov/good/terraform_checkov_good_1.tf
Marco Ferrari 9d7268fb99
feat: add support for checkov to lint iac files (#4925)
- Add support to run Checkov against infrastructure as code descriptors
  that are in a given (configurable) directory. Defaults to lint the
  whole workspace.
- Establish a baseline for our own codebase so we don't have to fix
  issues right away with this change.
2023-12-22 13:22:15 +01:00

32 lines
667 B
HCL

resource "aws_instance" "good" {
ami = "ami-0ff8a91507f77f867"
associate_public_ip_address = false
ebs_optimized = true
iam_instance_profile = "test"
instance_type = "t2.small"
monitoring = true
vpc_security_group_ids = ["sg-12345678901234567"]
metadata_options {
http_endpoint = "disabled"
}
ebs_block_device {
device_name = "name"
encrypted = true
}
root_block_device {
encrypted = true
}
}
terraform {
required_version = ">=1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}