## Overview Get your Atlas Cloud API credentials to use with Terraform, CLI tools, or programmatic access. ## Step 1: Log In Go to [sky.runatlas.is](https://sky.runatlas.is) and log in with your account. ## Step 2: Access Profile Settings Click your **profile icon** in the top-right corner of the dashboard. ## Step 3: Generate API Keys 1. Look for the **API Keys** section 2. If no keys exist, click **"Generate new API/Secret keys"** 3. Wait ~10 seconds for keys to appear ## Step 4: Copy Credentials Copy both values: | Credential | Used For | |------------|----------| | **API Key** | Username in API calls | | **Secret Key** | Password in API calls | > [!warning] Security > Store these securely! They provide full access to your account. ## Using with Terraform Add to your `terraform.tfvars`: ```hcl cloudstack_api_url = "https://sky.runatlas.is/client/api" cloudstack_api_key = "your-api-key-here" cloudstack_secret_key = "your-secret-key-here" ``` ## Using with cmk CLI Set environment variables: ```bash export CLOUDSTACK_API="https://sky.runatlas.is/client/api" export CLOUDSTACK_API_KEY="your-api-key-here" export CLOUDSTACK_SECRET_KEY="your-secret-key-here" ``` ## Regenerating Keys If your keys are compromised or you need to rotate them: 1. Go to your profile 2. Click **"Regenerate keys"** 3. Copy the new keys immediately 4. Update all your scripts/configs > [!warning] No Grace Period > Regenerating keys immediately invalidates the old credentials. Your automation will fail until updated with the new keys. Plan accordingly.