Skip to main content

Posts

Showing posts with the label aws

AWS Auto Scaling using Python Boto3

Auto Scaling Group in AWS configure using Python Boto3  What is Auto Scaling means?  This is key capability or power of Cloud Computing Engineers believe in their skills on scaling abilities.  Amazon EC2 Auto Scaling helps to maintain application availability and lets automatically add or remove EC2 instances using scaling policies that we define.  There are 2 types of scaling policies : Dynamic or predictive. These scaling policies let us add or remove EC2 instances capacity to service established or real-time demand patterns. It contains various steps involved in Auto Scaling process using Python Boto3 we will explore every step that accumulate to form a complete automation solution for a DevOps project. ASG Groups associated with ELB and EC2 instances   Understanding AWS Auto scaling configuration steps Check any running instances Create launch configuration Configure ASG for Auto scaling Verify the configuration Disable Auto Scaling In order to setup A...

AWS S3 Automation Using Python Boto3 – Create Buckets, Upload Files, Manage Objects, and Host Static Websites

Are you still uploading files to Amazon S3 manually through the AWS Console? As cloud environments continue to grow, manually managing buckets and objects becomes inefficient. Using Python and Boto3, we can automate S3 operations, improve productivity, and integrate storage management into DevOps workflows. In this article, we will explore the most common Amazon S3 operations using Python Boto3, including bucket creation, file uploads, object management, and static website hosting. What We'll Learn By the end of this article, you will be able to: Create Amazon S3 buckets using Python Upload files and objects to S3 Delete objects from buckets List bucket contents programmatically Retrieve all S3 buckets in your AWS account Understand S3 access control concepts Learn S3 automation best practices Prepare S3 buckets for static website hosting Build reusable cloud storage automation scripts Why Automate Amazon S3? Amazon S3 (Simple Storage Service) is one of the m...

Manage AWS EC2 Instances Using Python Boto3 – Complete Automation Guide

Hey Welcome! back to Automations with Python for AWS!!  Amazon Elastic Compute Cloud (EC2) is one of the most widely used AWS services for hosting applications and workloads in the cloud. While AWS Management Console provides a user-friendly interface, managing hundreds of EC2 instances manually becomes inefficient and error-prone. Python automation with Boto3 allows organizations to perform instance operations consistently, securely, and at scale. Boto3 is the official AWS SDK for Python that enables developers and DevOps engineers to interact with AWS services through code. It provides APIs for launching, monitoring, stopping, rebooting, and terminating EC2 instances. AWS EC2 instances managing with Python Boto3 SDK What are we doing? Have you ever logged into the AWS Console just to start, stop, or reboot EC2 instances and wondered if there was a faster way? As DevOps Engineers, Cloud Administrators, and Automation Architects, we perform repetitive EC2 management tasks every d...

Python Automations using Boto3 for AWS

The objective of this post is for experimenting with AWS Boto3 automations and AWS Lambda, most of the realtime usecase on AWS cloud controlled and acceleration with them. We should know as SRE or DevOps Engineer how to refer to the Boto3 documentation where AWS team provided lot of details and examples of each Boto3 method, I'm pretty sure you could make great automations with this Boto3 module explore ideas. Python for AWS Using Boto3 Let's jump on it... Prerequisites You must have AWS account [this can be your company provided or free-tire account]. Getting Started Python Automations using Boto3  Step 1: Add User in IAM  Let's get into the IAM adding user you can provide username as devops-admin Select AWS Access TYPE {tic} programmatic access this allows to access key ID and secret access key for the AWS API, CLI SDK (Boto3 uses this). Set permissions for 'devopsuser' Select policy type as 'AdministrationAccess' to access AWS resources and services [For...