Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Duration and session name

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Duration and session name A 12-hour leaked lab session is worse than a 15-minute one. CloudTrail needs a name that is not “temp”. DurationSeconds is how long the temp creds live (role max and caller limits apply; labs often use 900). RoleSessionName appears in CloudTrail. Pass --duration-seconds 900 and a clear --role-session-name like ravindra-lab1 on AssumeRole. CloudTrail shows ravindra-lab1 as
Duration and session name · Download PNG
Read card text

What this card says

Why do we need it?

A 12-hour leaked lab session is worse than a 15-minute one. CloudTrail needs a name that is not “temp”.

What is it?

DurationSeconds is how long the temp creds live (role max and caller limits apply; labs often use 900). RoleSessionName appears in CloudTrail.

DurationSeconds

How to do it

Pass --duration-seconds 900 and a clear --role-session-name like ravindra-lab1 on AssumeRole.

Example

CloudTrail shows ravindra-lab1 assuming the role; after 15 minutes the same exported keys stop working.

See all AWS revision cards