Example 14323
Terraform Resource
Infrastructure as code resource definition.
{
provider: "digitalocean"
region: "us-east-1"
resources: {
# Network
vpc: {
cidr_block: "10.144.0.0/16"
enable_dns: true
tags: {
Name: "traditionalism-vpc"
Environment: "production"
}
}
# Compute
instance: {
ami: "ami-2b4dd7a7"
type: "m5.large"
key_name: "approach-key"
monitoring: true
root_volume: {
size: 100
type: "gp2"
encrypted: true
}
}
# Security
security_group: {
name: "allow-web"
ingress_port: 80
ingress_cidr: "0.0.0.0/0"
}
}
}