Example 9431
Terraform Resource
Infrastructure as code resource definition.
{
provider: "aws"
region: "asia-southeast1"
resources: {
# Network
vpc: {
cidr_block: "10.109.0.0/16"
enable_dns: true
tags: {
Name: "commodity-vpc"
Environment: "production"
}
}
# Compute
instance: {
ami: "ami-c85a9a5a"
type: "t3.medium"
key_name: "armoire-key"
monitoring: true
root_volume: {
size: 20
type: "gp3"
encrypted: true
}
}
# Security
security_group: {
name: "allow-web"
ingress_port: 80
ingress_cidr: "0.0.0.0/0"
}
}
}