Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.1 KB

File metadata and controls

43 lines (29 loc) · 1.1 KB

Terraform | Equinix - Preparatory steps

In order for Terraform to run operations on your behalf, you just need to create an API Keys from your personal profile.

Example

Option 1 - Setup API Keys using REST API

Prerequisites

Create your personal Access Token.

Create your API Keys
curl -X POST \
-H "Content-Type: application/json" \
-H "X-Auth-Token: <API_TOKEN>" \
"https://api.equinix.com/metal/v1/user/api-keys" \
-d '{
    "description": "string",
    "read_only": false    
}'
Retrieve all the API Keys associated with your user account
curl -X GET -H 'X-Auth-Token: <API_TOKEN>' \
"https://api.equinix.com/metal/v1/user/{id}/api-keys"

Option 2 - Setup API Keys through the Console

Click the icon representing your Avatar at the top right and select My Profile
Move to the API Keys tab and click + Add new key

Use API Keys

export METAL_AUTH_TOKEN=