AWS Account Setup
AWS Account Setup
Amazon Web Services (AWS) is a major cloud platform youโll use in several HackerOps labs for deploying infrastructure, managing security services, and practicing real-world cloud scenarios.
Tip
Free Tier: AWS offers a generous free tier that covers most lab activities. Youโll need a credit card for verification, but wonโt be charged for basic usage.
Create AWS Account
Sign up: AWS Free Tier
If youโre new to AWS, follow the account creation process with your email and credit card information.
Create IAM User for Labs
Caution
Security Best Practice: Never use your root AWS account for day-to-day activities. Always create IAM users with specific permissions.
For HackerOps labs, youโll need programmatic access to AWS services. Hereโs how to set up a dedicated IAM user:
-
Access IAM Console - Sign in to AWS Console, search for โIAMโ in the services search bar, and click on โIAMโ to open the Identity and Access Management console
-
Create New User - In the IAM dashboard, click โUsersโ in the left sidebar, then click โAdd usersโ button and enter username:
hackerops-labs
-
Configure Access Type - Select โAccess key - Programmatic accessโ to provide API access needed for Terraform and CLI tools
-
Set Permissions - Choose โAttach existing policies directlyโ, then search for and select โAdministratorAccessโ (Note: This gives full access - only use for learning environments)
-
Review and Create - Skip tags (optional for labs), review the configuration, and click โCreate userโ
-
Save Credentials - Download the CSV file or copy both the Access Key ID and Secret Access Key (you wonโt be able to see the secret key again!)
Caution
Security Warning: These keys provide full access to your AWS account. Never share them or commit them to GitHub. Delete this user when you complete the course.
Install AWS CLI
The AWS Command Line Interface is essential for lab automation:
# Download and install AWS CLI v2curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscliv2.zipsudo ./aws/install
# Verify installationaws --version
# Using Homebrew (recommended)brew install awscli
# Or download installer from:# https://awscli.amazonaws.com/AWSCLIV2.pkg
# Verify installationaws --version
# Using Chocolateychoco install awscli
# Or download MSI installer from:# https://awscli.amazonaws.com/AWSCLIV2.msi
# Verify installationaws --version
Configure AWS CLI
Set up your credentials for CLI and Terraform access:
# Configure AWS CLI with your credentialsaws configure
# You'll be prompted for:# AWS Access Key ID: [Enter your Access Key]# AWS Secret Access Key: [Enter your Secret Key]# Default region name: us-east-1# Default output format: json
Test Your Setup
Verify everything is working:
# Test AWS CLI accessaws sts get-caller-identity
# Should return your user information# {# "UserId": "AIDACKCEVSQ6C2EXAMPLE",# "Account": "123456789012",# "Arn": "arn:aws:iam::123456789012:user/hackerops-labs"# }
Tip
Success! If you see your user information, AWS is properly configured and ready for the labs.
Next Steps
With AWS configured:
- Set up other cloud platforms - Azure and DigitalOcean
- Start Lab 1 - Begin with infrastructure deployment
- Monitor your usage - Check AWS billing dashboard regularly
Cost Management
Caution
Important: Always clean up resources after labs to avoid unexpected charges. Most labs include cleanup instructions.
Recommended practices:
- Set up billing alerts for amounts over $10
- Use AWS Cost Explorer to monitor spending
- Delete resources immediately after completing labs
- Consider using AWS Free Tier eligible services when possible