MORTIMERDEV LEARN / PATH
AWS foundations for web developers
Almost everything you do in AWS names a resource with an ARN, is allowed or denied by an IAM policy, and (if you do it well) is written as code with the CDK. Learn those three and the rest of AWS gets much less mysterious.
- Beginner
- 3 steps
- About 45 minutes
- Free
You’ll learn: Reading and building ARNs; Reading IAM policies and spotting risky ones; Writing and translating CDK in TypeScript and Python.
For: Web developers who use AWS through a console or a colleague’s templates and want to understand what they’re looking at.
The steps.
3 steps · not startedName things: ARNs
About 10 minutes · ARN ExplainerEvery AWS resource has an Amazon Resource Name. IAM policies, CDK code and error messages all refer to resources by ARN, so being able to read one at a glance is the first skill.
You’ll learn
- The parts of an ARN: partition, service, region, account and resource
- Why some ARNs have no region or account (S3 buckets, IAM)
- Building ARNs safely in CDK with formatArn
Try this in the tool
- Paste an ARN from your own account (or an example) and read each part
- Build an ARN for a Lambda function and copy the CDK version
Allow things: IAM policies
About 20 minutes · IAM Policy ExplainerIAM decides who can do what. Most “access denied” errors, and most security mistakes, come down to a policy, so it pays to read them confidently.
You’ll learn
- Effect, Action, Resource and Condition
- How explicit Deny beats Allow, and why the default is deny
- Spotting wildcards and other risky patterns
Try this in the tool
- Explain one of the example policies, then check “can it do this?” for an action it shouldn’t allow
- Paste a real policy (with account IDs swapped for placeholders) and read the findings
Build things: the CDK
About 15 minutes · CDK TypeScript ⇄ Python TranslatorThe CDK turns infrastructure into code you can review and repeat. AWS examples come in TypeScript or Python, so being able to read both doubles the help you can use.
You’ll learn
- Apps, stacks and constructs; L1, L2 and L3
- synth, diff, deploy and bootstrap
- How TypeScript and Python CDK map to each other
Try this in the tool
- Translate the Lambda + DynamoDB example to Python and back
- Find the IAM grant in it (grantReadWriteData) and think about the policy it creates
Next: Observability on AWS: set up, watch, act · 4 steps, about 65 minutes.
