Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 1.89 KB

digitalocean_vpc.md

File metadata and controls

118 lines (90 loc) · 1.89 KB

digitalocean_vpc

back

Index

Terraform

terraform {
  required_providers {
    digitalocean = ">= 2.7.0"
  }
}

top

Example Usage

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

Variables

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "region" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

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

Outputs

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