Example 15839
Terraform Resource
Infrastructure as code resource definition.
{
provider: "google"
region: "us-east-1"
resources: {
# Network
vpc: {
cidr_block: "10.6.0.0/16"
enable_dns: true
tags: {
Name: "electronics-vpc"
Environment: "staging"
}
}
# Compute
instance: {
ami: "ami-288f33ee"
type: "t3.medium"
key_name: "massage-key"
monitoring: true
root_volume: {
size: 20
type: "gp2"
encrypted: true
}
}
# Security
security_group: {
name: "allow-ssh"
ingress_port: 443
ingress_cidr: "0.0.0.0/0"
}
}
}