Example 10827
Terraform Resource
Infrastructure as code resource definition.
{
provider: "aws"
region: "us-east-1"
resources: {
# Network
vpc: {
cidr_block: "10.205.0.0/16"
enable_dns: true
tags: {
Name: "cornet-vpc"
Environment: "staging"
}
}
# Compute
instance: {
ami: "ami-7cddfe11"
type: "m5.large"
key_name: "saw-key"
monitoring: true
root_volume: {
size: 20
type: "gp3"
encrypted: true
}
}
# Security
security_group: {
name: "allow-ssh"
ingress_port: 80
ingress_cidr: "0.0.0.0/0"
}
}
}