AWS & Cloud Engineering
STS and assume role
Explain how AssumeRole returns temporary credentials, how trust policies and session duration limit who gets them and for how long, and why short sessions reduce risk.
What you will be able to do
- Explain how a trust policy decides which callers may assume a role.
- Decide the session duration for a job from the time it needs to finish.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AWS & Cloud Engineering
- Network ACLsIntermediate · 4 min
Explain how network ACL rules are numbered and evaluated, why they are stateless, and how an ACL allows or denies traffic at the subnet boundary.
- IAM evaluation logicIntermediate · 4 min
Explain how IAM decides a request, why an explicit deny overrides every allow, and how permissions boundaries and organization policies narrow what a role can do.
- Instance profilesAdvanced · 4 min
Explain how an instance profile passes a role's temporary credentials to an EC2 instance through instance metadata, so no access key needs to be stored on the instance.
- EC2 capacity modelsAdvanced · 4 min
Explain the main EC2 purchasing options, how Savings Plans differ from capacity reservations, and why a discount alone does not guarantee that a launch succeeds.
- Spot interruption handlingAdvanced · 4 min
Explain how Spot interruptions happen, how the two-minute notice reaches an instance through metadata and EventBridge, and how workers should save progress before a…
- ASG scaling policiesAdvanced · 4 min
Explain how target tracking scaling holds one metric near a target value, why the metric must change in proportion to group size, and how warm-up affects scaling…