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.

The main page of the Homepage homelab dashboard with services running on it.

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.

The word Windows 11 with a map pin on the right and the default windows 11 wallpaper as background.

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.

Article image

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.

Generate a new personal access token.

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.

Article image

Droplet creation