Skip to content

Commit

Permalink
Merge pull request #6 from harker-c/patch-4
Browse files Browse the repository at this point in the history
Update credentials.md
  • Loading branch information
zacksiri authored Feb 13, 2024
2 parents 3488ab8 + 9c88e85 commit 8fe2455
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/content/docs/infrastructure/digitalocean/credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ title: Credentials
description: Retrieving your digitalocean credentials.
---

To provision resources with digitalocean you will need 2 types of credentials.
To provision resources with DigitalOcean you will need 2 types of credentials.

+ Spaces Token - used for setting up spaces bucket
+ API Token - used for setting up compute, databases and networking.
+ Spaces Token - used for setting up spaces buckets
+ API Token - used for setting up compute, databases and networking

## API Token

Expand All @@ -18,17 +18,17 @@ Click on the `Generate New Token` button.

![api section](../../../../assets/infrastructure/digitalocean/generate-new-token.png)

Give your token a name you can identify with, be sure to check the `Write` permission, and click `Generate Token`. You can choose an expiration, but you need to make sure to replace the token once it expires.
Give your token a name you can identify it with. Be sure to check the `Write` permission and click `Generate Token`. You can choose an expiration, but you need to make sure to replace the token once it expires.

![api section](../../../../assets/infrastructure/digitalocean/generate-new-token-form.png)

Once you create the token you will see it once, copy it and store it somewhere safe.
Once you create the token you will see it only once. Copy it and store it somewhere safe.

![generated api token](../../../../assets/infrastructure/digitalocean/generated-api-token.png)

## Spaces Token

To get the `spaces token` click on the `Spaces Keys` tab.
To get the `spaces token`, click on the `Spaces Keys` tab.

![spaces keys](../../../../assets/infrastructure/digitalocean/spaces-keys-tab.png)

Expand All @@ -38,20 +38,20 @@ Click on the `Generate new key` button, give the key a name and click `Create ac

## Credential Management

In the terraform configuration generated by our platform, the API token is referenced as `do_token`.
In the Terraform configuration generated by our platform, the API token is referenced as `do_token`.

The spaces access key is referneced as `do_access_key` and `do_secret_key`.
The spaces access key is referenced as `do_access_key` and `do_secret_key`.

:::caution[Credential management]
Do not share these credentials to anyone, please store it safely:
Do not share these credentials with anyone, please store them safely.

+ Do not check them into source control.
+ If you use terraform cloud user variable sets to store them and check the `sensitive` option.
+ If you use Terraform Cloud, use variable sets to store them and check the `sensitive` option.
:::

### Further Detail
### Further Details

We have a video showing you how to store your credentials inside terraform cloud.
We have a video showing you how to store your credentials inside Terraform Cloud.

<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/079bdd740b65437f88b3331edbfb4b6f?sid=78c0e5b5-2e86-421a-916e-75ed8defa4ba" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>

0 comments on commit 8fe2455

Please sign in to comment.