Example 12630

Terraform Resource

Infrastructure as code resource definition.

{
provider: "azurerm"
region: "us-east-1"
resources: {
# Network
vpc: {
cidr_block: "10.51.0.0/16"
enable_dns: true
tags: {
Name: "plain-vpc"
Environment: "production"
}
}

# Compute
instance: {
ami: "ami-40ad8ae7"
type: "m5.large"
key_name: "unblinking-key"
monitoring: true
root_volume: {
size: 20
type: "io1"
encrypted: true
}
}

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

See also