Skip to main content
Interactive command — Provides guided setup for AWS profiles and credentials.

Overview

The fjall profile command manages AWS profiles, making it easy to switch between different accounts, regions, and environments.

Usage

fjall profile [subcommand] [options]

Subcommands

Get Current Profile

Display information about the current AWS profile:
fjall profile get
Output:
  Current Profile: production
  Account:  123456789012
  Region:   us-east-1
  Identity: [email protected]

✅ AWS credentials have been safely retrieved.

Set Active Profile

Switch between profiles:
fjall profile set production
Or interactively:
fjall profile set
? Select profile: 
 production
    development
    staging

Add New Profile

Add a new AWS profile with access key credentials:
fjall profile add
This will prompt for:
  1. Profile name
  2. AWS Access Key ID
  3. AWS Secret Access Key
  4. Default region

Update Profile

Update access key credentials for an existing profile:
fjall profile update
This will prompt for new AWS credentials while keeping other settings intact.

Unset Profile

Clear current AWS credentials:
fjall profile unset
This removes the currently active profile from your environment.

Generate Profile Config

Generate AWS config template from current account:
fjall profile generate
This creates a profile configuration based on your current AWS credentials and settings.

Examples

Profile with Options

Set profile with additional options:
# Set specific profile
fjall profile set --profile production

Profile Storage

Fjall uses standard AWS credential files (~/.aws/credentials and ~/.aws/config) to store profile information, ensuring compatibility with AWS CLI and SDKs.
The fjall profile set command only sets the active profile for Fjall commands. To use the same profile with AWS CLI, you need to set the AWS_PROFILE environment variable separately: export AWS_PROFILE=production

Security Best Practices

  1. Use SSO for production Configure SSO in your AWS config file for production environments
  2. Enable MFA Configure MFA in your AWS account settings
  3. Rotate credentials regularly
    fjall profile update
    
  4. Clear unused credentials
    fjall profile unset
    

Troubleshooting

Invalid Credentials

# Check current profile
fjall profile get

# Update credentials
fjall profile update

Profile Not Found

# Check current profile
fjall profile get

# Re-add profile
fjall profile add
Profile settings persist across projects. Set once, use everywhere.