Example 10930
Terraform Resource
Infrastructure as code resource definition.
{
provider: "digitalocean"
region: "asia-southeast1"
resources: {
# Network
vpc: {
cidr_block: "10.147.0.0/16"
enable_dns: true
tags: {
Name: "chiffonier-vpc"
Environment: "production"
}
}
# Compute
instance: {
ami: "ami-cb65ddd5"
type: "m5.large"
key_name: "fundraising-key"
monitoring: true
root_volume: {
size: 100
type: "gp3"
encrypted: true
}
}
# Security
security_group: {
name: "allow-ssh"
ingress_port: 8080
ingress_cidr: "0.0.0.0/0"
}
}
}