
🚀 Quick Start Guide
- Create a named profile using
aws configure --profile [name] - Never set a default profile permanently
- This avoids accidental operations on the wrong AWS account
- Activate profiles temporarily per session using
$env:AWS_PROFILE - Or activate per command using
--profile - Always clear the active profile when done to prevent unintended AWS operations
✅ 1. Create the profile (once only)
In PowerShell:
aws configure --profile nob
This creates:
~\.aws\credentials~\.aws\config
✅ 2. Use the profile temporarily in PowerShell
Option A — Set environment variable only for the current session
$env:AWS_PROFILE = "nob"
Option B — Use profile for one command
aws s3 ls --profile nob
✅ 3. Detach / remove / clear the temporary profile
Remove
Remove-Item Env:AWS_PROFILE
Check
Get-ChildItem Env:AWS_PROFILE
See also:
AWS Credentials for CLI (Profile)
AWS STS - Temporary Access Tokens
Amazon DynamoDB - Create a Table
Amazon DynamoDB - Import CSV Data