Automating AWS with Python: The Easy Way To The Cloud
summary
Live demo shows Python code using boto3 to create IAM roles, instance profiles and attach them to EC2 instances, then fetches instance inventories with paginators (handles 801 policies via pages) and uses waiters or custom sleeps to cope with eventual consistency delays of ~5–7s. The session also builds CloudWatch metric images into PNG files per instance and recommends using CDK to generate CloudFormation from Python. All code is in a GitLab Jupyter notebook and requires an AWS account.
AI-written summary · about
chapters (21)
- 0:00Start
- 1:22Resources
- 1:47Introduction
- 3:45What Characteristics Does Cloud Computing Has
- 12:11Command Line Interface
- 13:17Software Development Kits
- 14:24Python Sdk
- 21:09Aws Configure with a Profile
- 24:26Environment Variables
- 25:42Response Metadata
- 28:53Profiles
- 30:30Set Up the Region
- 41:41Create a Role
- 45:20Create an Instance Profile
- 49:35Add a Role to the Instance
- 58:32Eventual Consistency
- 1:07:30Questions
- 1:18:43For Loops
- 1:21:10Filter the Queries
- 1:42:25Automate the Generation of a Cloud Watch Graph
- 1:56:26The Cdk Cloud Development Kit
