Skip to content

Terraform module for creating VPC on the DigitalOcean cloud.

License

Notifications You must be signed in to change notification settings

opsd-io/terraform-module-digitalocean-vpc

Repository files navigation

OPSd - the unique and effortless way of managing cloud infrastructure.

Meet OPSd. The unique and effortless way of managing cloud infrastructure.

terraform-module-digitalocean-vpc

Introduction

What does the module provide?

Usage

module "module_name" {
  source  = "github.com/opsd-io/terraform-module-digitalocean-vpc"

  # Variables
  name        = "your-vpc"
  region      = "nyc3"
  ip_range    = "192.168.0.0/24"
  description = "VPC added by terraform module"
}

IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.

Requirements

Name Version
terraform >= 1.5.5
digitalocean >= 2.17.0

Providers

Name Version
digitalocean >= 2.17.0

Modules

No modules.

Resources

Name Type
digitalocean_vpc.main resource

Inputs

Name Description Type Default Required
delete_timeout Custom timeout to avoid Can not delete VPC with members issue. string "10m" no
description Description of your VPC. string null no
ip_range Resources created in this VPC will be assigned a private IP for secure communication within the specified range. string n/a yes
region VPC networks can only contain resources that are in the same datacenter region. string n/a yes
vpc_name A name for the VPC. Must be unique and contain alphanumeric characters, dashes, and periods only. string n/a yes

Outputs

Name Description
default A boolean indicating whether or not the VPC is the default one for the region.
id The unique identifier for the VPC.
ip_range The range of IP addresses in the VPC in CIDR notation.
name The name of the VPC.
region The region slug for the VPC's location.
urn The uniform resource name (URN) for the VPC.

Examples of usage

Do you want to see how the module works? See all the usage examples.

Related modules

The list of related modules (if present).

Contributing

If you are interested in contributing to the project, see see our guide.

Support

If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.

If you want to discuss something in person, you can join our community on Slack.

License

Apache License 2.0