Example 13235

Terraform Resource

Infrastructure as code resource definition.

{
provider: "azurerm"
region: "asia-southeast1"
resources: {
# Network
vpc: {
cidr_block: "10.37.0.0/16"
enable_dns: true
tags: {
Name: "pile-vpc"
Environment: "production"
}
}

# Compute
instance: {
ami: "ami-88a4b3dc"
type: "t3.micro"
key_name: "disposer-key"
monitoring: true
root_volume: {
size: 20
type: "io1"
encrypted: true
}
}

# Security
security_group: {
name: "allow-ssh"
ingress_port: 80
ingress_cidr: "0.0.0.0/0"
}
}
}

See also