Module 2 · Network Controls, Logging and Detection · Lesson 7 of 9
Guided project: secure an AWS sandbox
MFA and budgets, a private bucket, a one-object role, a network review, a CloudTrail event, and a complete cleanup.
In this lesson · about 50 minutes
- Build and verify a least-privilege storage setup
- Connect a change to its log evidence
- Clean up every resource and version
Setup: IAM, S3, CloudTrail and VPC in a dedicated training account or approved sandbox.
The six steps
- Guard the account. MFA on privileged access, a budget notification, and a note of the account ID and region. Use an approved role; avoid long-lived access keys.
- Private bucket. Create it with Block Public Access on, upload only dummy data, and record the encryption setting. If you enable versioning, plan to delete old versions too.
- One-object role. A role that can read only the intended object. Review the permission policy and the trust policy. Check it with the IAM policy simulator, then confirm with live tests.
- Prove it. The role can read its object, can't upload, and can't read an unrelated object. Read the error to tell a permission denial from a missing object or wrong endpoint.
- Network and logs. Review a security group for unnecessary ingress and find a related management change in CloudTrail. Explain what your logging captures and what it doesn't.
- Clean up. Save redacted evidence, delete objects and all versions, remove temporary roles and chargeable resources, and check the inventory in every region you used.
Hands-on lab (simulated terminal)
Project lab: steps 3 and 6
Simulated AWS CLI in the sandbox account. You've built the bucket and role; now validate with the simulator, then clean up.
Step 1 of 5. Type each command and press Enter. Nothing runs on your computer.
1. Step 3: simulate GetObject and PutObject for the lab-reader role against the q3.txt object ARN.
Performance-based question (PBQ)
Did the sandbox pass?
Your final checks.
Mark each result.
- lab-reader reads reports/q3.txt
- lab-reader's PutObject returns AccessDenied
- An anonymous curl to the object returns 200
- CloudTrail shows RevokeSecurityGroupIngress with your role as the actor
- Your test used the lab-admin profile for the 'can read' check
Noviq Academy is free and for learning. The AWS command line and console in this course are simulated with a made-up account and dummy data. If you practise in a real AWS account, use a dedicated sandbox, enable MFA and budget notifications, and delete everything when you finish: you are responsible for any charges. AWS and Amazon S3 are trademarks of Amazon.com, Inc.; this course is independent of AWS.