Example 8129

Terraform Resource

Infrastructure as code resource definition.

{
provider: "azurerm"
region: "eu-west-1"
resources: {
# Network
vpc: {
cidr_block: "10.172.0.0/16"
enable_dns: true
tags: {
Name: "bungalow-vpc"
Environment: "staging"
}
}

# Compute
instance: {
ami: "ami-ec0f0fc4"
type: "m5.large"
key_name: "gripper-key"
monitoring: true
root_volume: {
size: 20
type: "gp2"
encrypted: true
}
}

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

See also