In this way, it is easy to get started and not break any existing scripts.
The following steps outline how to create a new API key specifically for use with Terraform.
To authenticate, we need the following, as pulled from the documentation.
This is accomplished via OAuth, which is a substitute for a username and password.
This token, therefore, must be well-protected as it will allow full access to a DigitalOcean account.
Creating the JSON configuration
In this example, we are provisioning a simple droplet resource.
you could then set alerts on these metrics, so it is very useful for the future.
IPv6 means that your droplet will be accessible from IPv6, which helps to future-proof your droplets.
There is one other very useful ability and that is user data.
Provisioning the Droplet
Now that we have created our configuration, we will deploy the droplet.
Any way to resize this figure?
I can’t even read it.
Therefore, providing SSH keys upon provisioning is a far more secure method.
Additionally, DigitalOcean volumes can be attached to a droplet to allow for movable block storage.
Finally, tagging allows you to categorize and apply certain policies, such as firewalls to a droplet.