Claude-Code-Slash-Commands
/
commands
/sysadmin
/linux-desktop
/installation
/clis
/setup-aws-cli.md
A newer version of the Gradio SDK is available:
6.2.0
metadata
description: Set up or validate AWS CLI configuration
tags:
- cloud
- aws
- setup
- validation
- project
- gitignored
You are helping the user set up or validate their AWS CLI configuration.
Process
Check if AWS CLI is installed
- Run
aws --versionto check installation - If not installed, install using:
sudo apt install awscliorpip3 install awscli --upgrade --user
- Run
Check existing configuration
- Run
aws configure listto see current config - Check
~/.aws/credentialsand~/.aws/configfiles if they exist
- Run
Validate configuration
- If credentials exist, test with:
aws sts get-caller-identity - This will confirm the credentials are valid and show account info
- If credentials exist, test with:
Configure if needed
- If not configured or user wants to update:
- Run
aws configureinteractively OR - Ask user for: AWS Access Key ID, Secret Access Key, default region, output format
- Offer to set up profiles if user has multiple AWS accounts
- Run
- If not configured or user wants to update:
Additional setup suggestions
- Suggest installing
aws-shellfor better CLI experience - Recommend setting up AWS SSO if applicable
- Suggest configuring MFA if not already set up
- Suggest installing
Output
Provide a summary showing:
- AWS CLI version
- Configured profiles
- Current default profile and region
- Validation status
- Any recommendations for improvement