atmos auth console
Use this command to quickly access your cloud provider's web console (AWS, Azure, GCP) using your authenticated Atmos identity credentials, eliminating the need to manually copy credentials or log in separately.
Usage​
atmos auth console [flags]
This command generates a temporary, secure sign-in URL using your authenticated identity's credentials and automatically opens it in your default browser. The URL is valid for a limited time and provides seamless access to the cloud provider's web console.
Examples​
Basic Usage​
# Open console with default identity
atmos auth console
# Interactively select identity
atmos auth console --identity
# Open console with specific identity
atmos auth console --identity prod-admin
# Use short form of identity flag
atmos auth console -i prod-admin
# Interactive selection with short form
atmos auth console -i
AWS-Specific Examples​
Using Service Aliases (Shorthand)​
Atmos supports convenient aliases for common AWS services - just use the service name:
# Open AWS S3 console (shorthand)
atmos auth console --destination s3
# Open AWS EC2 console
atmos auth console --destination ec2
# Open AWS Lambda console
atmos auth console --destination lambda
# Open AWS CloudFormation console
atmos auth console --destination cloudformation
# Open AWS RDS console
atmos auth console --destination rds
# Open AWS DynamoDB console
atmos auth console --destination dynamodb
Available Aliases: Atmos supports 100+ AWS service aliases including: s3, ec2, lambda, dynamodb, rds, vpc, iam, cloudformation, cloudwatch, eks, ecs, sagemaker, bedrock, and many more. Aliases are case-insensitive.
Using Full URLs​
You can also use complete AWS console URLs for specific pages:
# Open AWS S3 console (full URL)
atmos auth console --destination https://console.aws.amazon.com/s3
# Open AWS EC2 console with longer session
atmos auth console --destination https://console.aws.amazon.com/ec2 --duration 4h
Other Options​
# Custom issuer name (appears in AWS console URL)
atmos auth console --issuer my-organization
Scripting and Automation​
# Print URL to stdout without opening browser
atmos auth console --print-only
# Copy URL to clipboard (macOS)
atmos auth console --print-only | pbcopy
# Copy URL to clipboard (Linux)
atmos auth console --print-only | xclip
# Generate URL but don't auto-open browser
atmos auth console --no-open
Advanced Examples​
# Combine options for specific use case (using alias)
atmos auth console \
--identity prod-admin \
--destination cloudformation \
--duration 2h \
--issuer devops-team
# Access machine learning services
atmos auth console --destination sagemaker
atmos auth console --destination bedrock
# Security and compliance services
atmos auth console --destination guardduty
atmos auth console --destination securityhub
atmos auth console --destination iam
Flags​
--identity/-iSpecify the Atmos identity to use for console access. This flag has three modes:
- With value (
--identity admin): Use the specified identity - Without value (
--identity): Show interactive selector to choose identity - Omitted: Use the default identity configured in
atmos.yaml, or prompt if no default is set
Environment variables:
ATMOS_IDENTITYorIDENTITY(checked in that order)- With value (
--destinationThe specific console page or service to navigate to after authentication. Provider-specific URL format.
AWS Examples:
https://console.aws.amazon.com/s3- S3 consolehttps://console.aws.amazon.com/ec2- EC2 consolehttps://console.aws.amazon.com/cloudformation- CloudFormation console
Default: Provider's main console page
--durationThe requested duration for the console session. Providers may enforce maximum limits.
AWS: Maximum 12 hours
Default: 1 hour, or the provider's
console.session_durationconfigurationFormat: Go duration (e.g.,
1h,2h30m,12h)Example:
--duration 4hNote: This flag overrides the provider's
console.session_durationsetting when specified.--issuerAn identifier that appears in the console URL (AWS only). Useful for tracking or organizational purposes.
Default:
atmosExample:--issuer my-team--print-onlyPrint the console URL to stdout instead of opening a browser. Useful for scripting or when you want to manually control when/how the URL is opened.
Example:
atmos auth console --print-only | pbcopy--no-openGenerate the console URL and display it, but don't automatically open the browser. The URL is still shown in the terminal output.
Example:
atmos auth console --no-open
How It Works​
AWS Console Access​
For AWS identities, Atmos uses the AWS Federation Endpoint to generate temporary console sign-in URLs:
-
Authentication: Atmos authenticates using your configured identity (AWS SSO, SAML, etc.) to obtain temporary credentials with a session token.
-
Federation Token: The temporary credentials are sent to the AWS federation endpoint (
https://signin.aws.amazon.com/federation) to request a signin token. -
Console URL: Atmos constructs a special URL containing the signin token that automatically logs you into the AWS console.
-
Browser Launch: The URL is opened in your default browser, providing instant access to the AWS console.
Console signin tokens are valid for 15 minutes and should be treated as sensitive. Never share console URLs or paste them in logs or chat applications.
Azure and GCP (Coming Soon)​
Support for Azure Portal and Google Cloud Console is planned for future releases. The command structure will remain the same across all providers.
Provider Support​
| Provider | Status | Notes |
|---|---|---|
| AWS (IAM Identity Center) | ✅ Supported | Full support with federation endpoint |
| AWS (SAML) | ✅ Supported | Full support with federation endpoint |
| Azure | 🚧 Planned | Coming in future release |
| GCP |