Configure AWS CLI Authentication
Goal
Configure AWS CLI authentication to deploy applications and access AWS resources.
Steps
1. Install AWS CLI
Download and install from the official AWS CLI documentation.
2. Create IAM User
Navigate to IAM service in AWS Management Console and create a new user with appropriate deployment permissions.
3. Generate Access Keys
In IAM user details → Security credentials tab → Create access key. Save the access key ID and secret access key.
4. Configure AWS CLI
Run the configuration command:
aws configure
Enter your credentials when prompted:
- Access key ID
- Secret access key
- Default region (e.g.,
us-east-1) - Output format (e.g.,
json)
Alternative: manually edit ~/.aws/config (Linux/Mac) or %USERPROFILE%\.aws\config (Windows).
5. Verify Configuration
Test authentication by listing S3 buckets:
aws s3 ls
If configured correctly, you’ll see your S3 buckets listed.