Skip to content

v1.4.0: AWS SSO Authentication Improvements

Choose a tag to compare

@ditahkk ditahkk released this 30 Mar 23:18
· 358 commits to main since this release
e90bda4

🚀 New Features

  • Script Renamed: The auth_aws script has been renamed to authaws for improved usability
  • Credentials Display: New creds command to view your AWS access key, secret key, and session token:
    authaws creds [profile-name]
  • Better Integration: Enhanced integration with AWS CLI for credential management
  • Improved User Experience: More intuitive command naming and structure

🔧 Improvements

  • Updated help text and documentation to reflect new features
  • Enhanced error handling for credentials retrieval with specific guidance for different scenarios
  • Better guidance for users during authentication process
  • Streamlined command structure for easier memorization
  • Suppressed misleading "Not a tty" error message during SSO login

🔄 Migration Guide

For users with manual installation:

  1. Update your repository:

    cd /path/to/quickssm
    git pull
  2. Make the new script executable:

    chmod +x authaws
  3. Update your PATH or symlinks as needed

For users with symlinked installation:

If you've installed the tool using symlinks in /usr/local/bin or similar:

# Navigate to your quickssm directory
cd /path/to/quickssm

# Pull the latest changes
git pull

# Make the script executable
chmod +x authaws

# Update symlinks (may require sudo)
sudo ln -sf "$(pwd)/authaws" /usr/local/bin/authaws
sudo rm -f /usr/local/bin/auth_aws  # Remove old symlink

For users who need backward compatibility:

If you have scripts or aliases that reference the old name:

# Create a symlink from the old name to the new script
ln -s "$(pwd)/authaws" "$(pwd)/auth_aws"

📝 Usage Examples

Authentication:

authaws myprofile  # Log in with specific profile

Viewing Credentials:

authaws creds myprofile  # Show credentials for specific profile
authaws creds            # Show credentials for current or default profile

Applying Credentials to Current Shell:

eval $(aws configure export-credentials --profile myprofile --format env)