AWS Profile Quick Tip
TL;DR
bash
# Create profile for this course
aws configure --profile course
# Use it (temporary)
export AWS_PROFILE=course
# Use it (permanent)
echo 'export AWS_PROFILE=course' >> ~/.zshrc && source ~/.zshrcWhy
Keep your existing AWS configurations separate while following course instructions exactly as written.
How
1. Create a dedicated profile
bash
aws configure --profile courseEnter your course AWS credentials when prompted.
2. Set it as active
Temporary (current session):
bash
export AWS_PROFILE=coursePermanent (add to shell config):
bash
echo 'export AWS_PROFILE=course' >> ~/.zshrc && source ~/.zshrcUse ~/.bashrc or ~/.bash_profile for other shells.
3. Switch back when needed
bash
unset AWS_PROFILEThis returns you to your default AWS profile.