Skip to content

Instantly share code, notes, and snippets.

@becki-at-luminal
becki-at-luminal / ami.tf
Created September 27, 2021 18:46
Using Regula and OPA to check AWS AMI IDs in Terraform (blog post) -- Rego custom rule and Terraform file
# A Terraform file to test the approved_ami.rego custom rule
# See our blog post for details: https://blog.fugue.co
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "good" {
ami = "ami-09e67e426f25ce0d7"
instance_type = "t2.micro"