Rapid fire: boto3 snippets you should be able to write from memory.
IntermediateConceptBest practices & rapid-fire commands
Answer
boto3.client("sts").get_caller_identity()["Arn"] # who am I
boto3.Session(profile_name="prod").client("s3", region_name="eu-west-1")
ec2.get_paginator("describe_instances").paginate(Filters=[...])
ec2.get_waiter("instance_stopped").wait(InstanceIds=[iid])
e.response["Error"]["Code"] # in except ClientError as e
Config(retries={"mode": "adaptive", "max_attempts": 10})
s3.generate_presigned_url("get_object", Params={...}, ExpiresIn=900)
More on Best practices & rapid-fire commands
What does a production-quality automation script always include?IntermediateHow do you handle configuration in a Python tool?IntermediateWhat are the most common security mistakes in Python ops code?AdvancedBash or Python for this task: how do you decide?BeginnerRapid fire: set up a project environment from scratch.BeginnerRapid fire: one-liners useful during an incident.Intermediate