Provides a DigitalOcean Droplet resource. This can be used to create, modify, and delete Droplets. Droplets also support provisioning.
To declare this entity in your AWS CloudFormation template, use the following syntax:
{ "Type" : "TF::DigitalOcean::Droplet", "Properties" : { "Backups" : Boolean, "Image" : String, "Ipv6" : Boolean, "Monitoring" : Boolean, "Name" : String, "PrivateNetworking" : Boolean, "Region" : String, "ResizeDisk" : Boolean, "Size" : String, "SshKeys" : [ String, ... ], "Tags" : [ String, ... ], "UserData" : String, "VolumeIds" : [ String, ... ], "VpcUuid" : String } }
Type: TF::DigitalOcean::Droplet Properties: Backups: Boolean Image: String Ipv6: Boolean Monitoring: Boolean Name: String PrivateNetworking: Boolean Region: String ResizeDisk: Boolean Size: String SshKeys: - String Tags: - String UserData: String VolumeIds: - String VpcUuid: String
Boolean controlling if backups are made. Defaults to false.
Required: No
Type: Boolean
Update requires: No interruption
The Droplet image ID or slug.
Required: Yes
Type: String
Update requires: No interruption
Boolean controlling if IPv6 is enabled. Defaults to false.
Required: No
Type: Boolean
Update requires: No interruption
Boolean controlling whether monitoring agent is installed. Defaults to false.
Required: No
Type: Boolean
Update requires: No interruption
The Droplet name.
Required: Yes
Type: String
Update requires: No interruption
Boolean controlling if private networking
is enabled. When VPC is enabled on an account, this will provision the
Droplet inside of your account's default VPC for the region. Use the
vpc_uuid
attribute to specify a different VPC.
Required: No
Type: Boolean
Update requires: No interruption
The region to start in.
Required: Yes
Type: String
Update requires: No interruption
Boolean controlling whether to increase the disk
size when resizing a Droplet. It defaults to true
. When set to false
,
only the Droplet's RAM and CPU will be resized. Increasing a Droplet's disk
size is a permanent change. Increasing only RAM and CPU is reversible.
Required: No
Type: Boolean
Update requires: No interruption
The unique slug that indentifies the type of Droplet. You can find a list of available slugs on DigitalOcean API documentation.
Required: Yes
Type: String
Update requires: No interruption
A list of SSH key IDs or fingerprints to enable in
the format [12345, 123456]
. To retrieve this info, use the
DigitalOcean API
or CLI (doctl compute ssh-key list
). Once a Droplet is created keys can not
be added or removed via this provider. Modifying this field will prompt you
to destroy and recreate the Droplet.
Required: No
Type: List of String
Update requires: No interruption
A list of the tags to be applied to this Droplet.
Required: No
Type: List of String
Update requires: No interruption
Required: No
Type: String
Update requires: No interruption
Required: No
Type: List of String
Update requires: No interruption
The ID of the VPC where the Droplet will be located.
Required: No
Type: String
Update requires: No interruption
When you pass the logical ID of this resource to the intrinsic Ref
function, Ref returns the tfcfnid.
The Fn::GetAtt
intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt
intrinsic function, see Fn::GetAtt.
Internal identifier for tracking resource changes. Do not use.
Returns the CreatedAt
value.
Returns the Disk
value.
Returns the Id
value.
Returns the Ipv4Address
value.
Returns the Ipv4AddressPrivate
value.
Returns the Ipv6Address
value.
Returns the Locked
value.
Returns the Memory
value.
Returns the PriceHourly
value.
Returns the PriceMonthly
value.
Returns the Status
value.
Returns the Urn
value.
Returns the Vcpus
value.