Lesson 05 β Securing a New AWS Account
Learning Path
βοΈ Phase 2 β AWS Cloud Security
π Module 01 β AWS Security Foundations
π― Lesson Objective
Section titled βπ― Lesson ObjectiveβBy the end of this lesson, you will be able to:
- Secure a brand-new AWS account.
- Configure enterprise security baseline controls.
- Protect the Root User.
- Configure Multi-Factor Authentication (MFA).
- Create an Administrator IAM User.
- Configure Billing Alerts.
- Enable CloudTrail.
- Review IAM Account Settings.
- Prepare your AWS account for future modules.
π Lesson Information
Estimated Time: 3 Hours
Difficulty: Beginner
Prerequisites: Lessons 01β04
Hands-on Lab: Yes
Assignment: Yes
πΌ Business Value
Section titled βπΌ Business ValueβWhenever a company creates a new AWS account, the Cloud Security team is responsible for preparing it before developers begin deploying workloads.
This process is known as establishing a Security Baseline.
A properly secured AWS account reduces the risk of:
- Account compromise
- Unauthorised access
- Misconfigurations
- Unexpected costs
- Compliance failures
This lesson simulates that onboarding process.
π’ In the Company
Section titled βπ’ In the CompanyβCloudNova Technologies has opened a new AWS account for its Development environment.
The Cloud Engineering team wants immediate access.
Before approving the account, the CISO requires you to complete the Enterprise Security Baseline.
Only after this checklist is complete can developers begin using AWS.
π Enterprise Build
Section titled βπ Enterprise BuildβThroughout the remainder of this learning path, you will continue securing this same AWS account.
Todayβs goal is to create a secure foundation.
Future lessons will add:
- IAM
- VPC
- CloudTrail
- GuardDuty
- Security Hub
- KMS
- AWS Config
- Inspector
- WAF
- Incident Response
Everything begins here.
π Enterprise Security Baseline
Section titled βπ Enterprise Security BaselineβBy the end of this lesson you will have completed:
β Root Account Protected
β MFA Enabled
β Administrator IAM User
β Billing Alerts
β CloudTrail Enabled
β Password Policy Reviewed
β IAM Account Summary Reviewed
β AWS CLI Configured
π§ͺ Enterprise Mission 01 β Sign in to AWS
Section titled βπ§ͺ Enterprise Mission 01 β Sign in to AWSβOpen:
https://console.aws.amazon.comSign in using your Root User.
π§ͺ Enterprise Mission 02 β Secure the Root Account
Section titled βπ§ͺ Enterprise Mission 02 β Secure the Root AccountβNavigate to
Account
β
Security CredentialsReview
- Root Email
- Password
- MFA
- Access Keys
Verify Root Access Keys
Section titled βVerify Root Access KeysβEnsure:
No Root Access Keys ExistIf access keys exist:
Delete them.
Root access keys should never be used.
π§ͺ Enterprise Mission 03 β Enable MFA
Section titled βπ§ͺ Enterprise Mission 03 β Enable MFAβNavigate
Security Credentials
β
Multi-Factor Authentication
β
Assign MFA DeviceSupported methods
- Authenticator App
- Hardware Key
- FIDO Security Key
Recommended:
Microsoft Authenticator
or
Google Authenticator
Verify
MFA Enabledπ§ͺ Enterprise Mission 04 β Create an Administrator User
Section titled βπ§ͺ Enterprise Mission 04 β Create an Administrator UserβNavigate
IAM
β
Users
β
Create UserExample
cloud-adminEnable
Provide Console AccessAssign
AdministratorAccessNote: We use
AdministratorAccessonly during the initial learning phase. Later lessons will replace this with least-privilege custom policies.
π§ͺ Enterprise Mission 05 β Sign in as IAM User
Section titled βπ§ͺ Enterprise Mission 05 β Sign in as IAM UserβSign out of Root.
Sign in using
IAM UserVerify:
- Console Access
- MFA
- Permissions
Root account should no longer be used for daily work.
π§ͺ Enterprise Mission 06 β Configure AWS CLI
Section titled βπ§ͺ Enterprise Mission 06 β Configure AWS CLIβVerify installation
aws --versionExpected
aws-cli/2.x.xConfigure
aws configureExample
AWS Access Key ID:
AWS Secret Access Key:
Default Region:
Default Output Format: jsonVerify
aws configure listCurrent identity
aws sts get-caller-identityπ§ͺ Enterprise Mission 07 β Review IAM Account Summary
Section titled βπ§ͺ Enterprise Mission 07 β Review IAM Account Summaryβaws iam get-account-summaryReview
- Users
- Groups
- Roles
- MFA Devices
- Account Alias
π§ͺ Enterprise Mission 08 β Create an Account Alias
Section titled βπ§ͺ Enterprise Mission 08 β Create an Account AliasβConsole
IAM
β
Dashboard
β
Create Account AliasExample
cloudnova-devThis makes sign-in easier.
Verify using CLI:
aws iam list-account-aliasesπ§ͺ Enterprise Mission 09 β Configure Billing Alerts
Section titled βπ§ͺ Enterprise Mission 09 β Configure Billing AlertsβNavigate
Billing
β
Billing PreferencesEnable
- Receive Billing Alerts
Go to
CloudWatch
β
Alarms
β
Create AlarmConfigure:
- Billing Metric
- Threshold
- Email Notification
Example:
| Threshold | Purpose |
|---|---|
| βΉ500 | Learning account budget |
| βΉ1000 | Warning threshold |
| βΉ2000 | Immediate investigation |
π§ͺ Enterprise Mission 10 β Enable CloudTrail
Section titled βπ§ͺ Enterprise Mission 10 β Enable CloudTrailβNavigate
CloudTrail
β
Create TrailConfiguration
Trail Name
cloudnova-trailChoose
Multi-Region Trail
EnabledEnable
Management Events
Read & WriteStore logs in
New S3 BucketCLI Verification
aws cloudtrail describe-trailsπ§ͺ Enterprise Mission 11 β Review Password Policy
Section titled βπ§ͺ Enterprise Mission 11 β Review Password PolicyβConsole
IAM
β
Account SettingsReview
- Minimum Length
- Numbers
- Symbols
- Uppercase
- Lowercase
CLI
aws iam get-account-password-policyπ§ͺ Enterprise Mission 12 β Verify Account Security
Section titled βπ§ͺ Enterprise Mission 12 β Verify Account SecurityβRun
aws iam get-account-summaryRun
aws sts get-caller-identityRun
aws configure listConfirm
β IAM User
β MFA
β CLI
β CloudTrail
π’ Enterprise Scenario
Section titled βπ’ Enterprise ScenarioβCloudNova has completed the AWS account setup.
Before approving production access, the CISO asks you to verify:
- Root account is protected
- MFA is enabled
- Developers are not using the Root User
- Billing alerts are configured
- CloudTrail is recording API activity
- AWS CLI is configured for administrators
- Security baseline documentation is complete
Prepare a recommendation for approval.
π Knowledge Check
Section titled βπ Knowledge Checkβ- Why should the Root User rarely be used?
- Why is MFA mandatory?
- Why should administrators use IAM Users?
- Why are billing alerts important?
- Why enable CloudTrail before deploying resources?
- What information does
aws sts get-caller-identityprovide? - What is the purpose of an IAM Account Alias?
- Why should Root Access Keys never exist?
- Which AWS CLI command verifies your current configuration?
- What is a Security Baseline?
π Assignment
Section titled βπ AssignmentβCreate an AWS Security Baseline Document for CloudNova Technologies.
Include:
- AWS Account Information
- Root User Protection
- MFA Configuration
- IAM Administrator User
- Billing Alert Configuration
- CloudTrail Configuration
- CLI Configuration
- Security Checklist
- Screenshots of completed tasks
- Recommendations before production deployment
Length: 4β5 pages
β Lesson Completion Checklist
Section titled ββ Lesson Completion ChecklistβBefore continuing, verify that you have completed every task.
| Task | Status |
|---|---|
| Root Account Secured | β |
| Root Access Keys Removed | β |
| MFA Enabled | β |
| Administrator IAM User Created | β |
| Signed in as IAM User | β |
| AWS CLI Configured | β |
| IAM Account Alias Created | β |
| Billing Alerts Configured | β |
| CloudTrail Enabled | β |
| Password Policy Reviewed | β |
| Security Baseline Document Created | β |
π‘ Key Takeaways
Section titled βπ‘ Key TakeawaysβAfter completing this lesson, you should be able to:
- Secure a new AWS account using enterprise best practices.
- Protect the Root User and enforce MFA.
- Create and use an Administrator IAM User instead of the Root User.
- Configure the AWS CLI for secure administration.
- Enable CloudTrail to capture account activity.
- Configure billing alerts to monitor costs.
- Establish a repeatable security baseline for future AWS accounts.
π Further Reading
Section titled βπ Further Readingβ- AWS IAM Best Practices
- AWS CloudTrail User Guide
- AWS Billing and Cost Management Documentation
- AWS CLI User Guide
- AWS Well-Architected Framework β Security Pillar
π Next Lesson
Section titled βπ Next Lessonββ‘οΈ Lesson 06 β AWS Security Services Overview