Example 4628
Terraform Resource
Infrastructure as code resource definition.
{
provider: "digitalocean"
region: "us-east-1"
resources: {
# Network
vpc: {
cidr_block: "10.171.0.0/16"
enable_dns: true
tags: {
Name: "lawmaker-vpc"
Environment: "production"
}
}
# Compute
instance: {
ami: "ami-acb6790a"
type: "t3.micro"
key_name: "nephew-key"
monitoring: true
root_volume: {
size: 100
type: "io1"
encrypted: true
}
}
# Security
security_group: {
name: "allow-all"
ingress_port: 22
ingress_cidr: "0.0.0.0/0"
}
}
}