Skip to main content

Posts

Showing posts with the label python3

Manage AWS ELB using Python Boto3 Automation

 Hey Automation Specialist! Welcome to Python-Orientation blog, In this article we are going to explore the possible functions what we can use for managing AWS ELB automations using Boto3 Python scripts.  AWS provides us 4 types of load balancers - CLB Classic Load balancer supports HTTP, HTTPS, TCP, TLS which is older and soon sun set. ALB Application Load Balancer which supports HTTP, HTTPS requests. Introduced in 2016 this V2 version Elastic Load Balancer. And in the 2017 AWS introduced Network Load Balancer NLB, it is designed to support Transport Layer protocols - TCP, UDP and TLS requests. And the latest one is more focused on Security Threat Monitoring - which lays on Network Layer and it support routing traffic to 3rd party Threat monitoring service which can be isolated from the Application services network. It works as Gateway for the external traffic so it is known as Gateway Load balancer. What is ELB? ELB automatically distributes the incoming network traffic (HTT...

Beginning of 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 s...