Example 14739

Terraform Resource

Infrastructure as code resource definition.

{
provider: "aws"
region: "asia-southeast1"
resources: {
# Network
vpc: {
cidr_block: "10.225.0.0/16"
enable_dns: true
tags: {
Name: "dulcimer-vpc"
Environment: "production"
}
}

# Compute
instance: {
ami: "ami-bebaeed3"
type: "t3.medium"
key_name: "video-key"
monitoring: true
root_volume: {
size: 50
type: "io1"
encrypted: true
}
}

# Security
security_group: {
name: "allow-all"
ingress_port: 443
ingress_cidr: "0.0.0.0/0"
}
}
}

See also