Example 12729
Terraform Resource
Infrastructure as code resource definition.
{
provider: "google"
region: "eu-west-1"
resources: {
# Network
vpc: {
cidr_block: "10.39.0.0/16"
enable_dns: true
tags: {
Name: "thread-vpc"
Environment: "staging"
}
}
# Compute
instance: {
ami: "ami-fd9cd68f"
type: "t3.small"
key_name: "ostrich-key"
monitoring: true
root_volume: {
size: 100
type: "gp2"
encrypted: true
}
}
# Security
security_group: {
name: "allow-all"
ingress_port: 443
ingress_cidr: "0.0.0.0/0"
}
}
}