1.6 KiB
1.6 KiB
layout | page_title | sidebar_current |
---|---|---|
digitalocean | DigitalOcean: digitalocean_droplet | docs-do-resource-droplet |
digitalocean_droplet
Provides a DigitalOcean droplet resource. This can be used to create, modify, and delete droplets. Droplets also support provisioning.
Example Usage
# Create a new Web droplet in the nyc2 region
resource "digitalocean_droplet" "web" {
image = "ubuntu-14-04-x64"
name = "web-1"
region = "nyc2"
size = "512mb"
}
Argument Reference
The following arguments are supported:
image
- (Required) The droplet image ID or slug.name
- (Required) The droplet nameregion
- (Required) The region to start insize
- (Required) The instance size to startbackups
- (Optional) Boolean controlling if backups are made.ipv6
- (Optional) Boolean controlling if IPv6 is enabled.private_networking
- (Optional) Boolean controlling if private networks are enabled.ssh_keys
- (Optional) A list of SSH IDs or fingerprints to enable in the format[12345, 123456]
Attributes Reference
The following attributes are exported:
id
- The ID of the dropletname
- The name of the dropletregion
- The region of the dropletimage
- The image of the dropletipv6
- Is IPv6 enabledipv6_address
- The IPv6 addressipv6_address_private
- The private networking IPv6 addressipv4_address
- The IPv4 addressipv4_address_private
- The private networking IPv4 addresslocked
- Is the Droplet lockedprivate_networking
- Is private networking enabledsize
- The instance sizestatus
- The status of the droplet