Get DigitalOcean API key

Log onto your Digital ocean account.

Then click the Api menu near the bottom on the left.

Then make sure you are on the Tokens/Keys tab and click the Generate New Token button.

Clicking should bring up a box where you can give the token a name.

Leave the ‘Write’ checkbox ticked.

Once again, save this token somewhere save.

I would also once again create a bash function to set it.

While we are at it will also add one for TF_VAR_do_token for Terraform.

Here is an example.

setDOLvDepProfile() {  
  export DIGITALOCEAN_TOKEN="MY_DO_TOKEN"
  export TF_VAR_do_token="${DIGITALOCEAN_TOKEN}"
}
At Haak Co, we turn your ideas into digital reality. Website and application development, supported by full stack solutions, from advice to implementation.

Newsletter

    Every great idea deserves to shine. Our team of digital wizards works tirelessly to transform your concepts into captivating digital experiences.

    HaakCo. Some Rights Reserved.© Copyright 2024

    Supportscreen tag