back
terraform {
required_providers {
digitalocean = ">= 2.7.0"
}
}
top
module "digitalocean_vpc" {
source = "./modules/digitalocean/d/digitalocean_vpc"
# name - (optional) is a type of string
name = null
# region - (optional) is a type of string
region = null
}
top
variable "name" {
description = "(optional)"
type = string
default = null
}
variable "region" {
description = "(optional)"
type = string
default = null
}
top
data "digitalocean_vpc" "this" {
# name - (optional) is a type of string
name = var.name
# region - (optional) is a type of string
region = var.region
}
top
output "created_at" {
description = "returns a string"
value = data.digitalocean_vpc.this.created_at
}
output "default" {
description = "returns a bool"
value = data.digitalocean_vpc.this.default
}
output "description" {
description = "returns a string"
value = data.digitalocean_vpc.this.description
}
output "id" {
description = "returns a string"
value = data.digitalocean_vpc.this.id
}
output "ip_range" {
description = "returns a string"
value = data.digitalocean_vpc.this.ip_range
}
output "name" {
description = "returns a string"
value = data.digitalocean_vpc.this.name
}
output "region" {
description = "returns a string"
value = data.digitalocean_vpc.this.region
}
output "urn" {
description = "returns a string"
value = data.digitalocean_vpc.this.urn
}
output "this" {
value = digitalocean_vpc.this
}
top