Posts

Showing posts from January, 2022

What does GitOps really mean?

Image
At a high level, here is how GitOps work. First of all, It is a technical practice that follows the DevOps philosophy. You define the desired infrastructure configs in git, and a tool or an operator software that sits in your infrastructure watches for any changes in git. If it detects any change in git, it applies those changes to the infrastructure and brings it to the desired state. Also, the operator software continuously monitors the state of the infrastructure, If the infrastructure deviates from the desired state (let's say due to a manual change), the operator software ensures the infrastructure comes back to the desired state. For example, in git, the infra config says, for autoscaling, the minimum instance count is 3, and the max is 9. The operator software deploys the autoscaling group with the values in Git. Assume someone does a manual change, now the autoscaling min and max count is 4 and 12 now. Since the operator software continuously monitors the infras

Create and Connect to a MySQL Database

Image
  In this tutorial, you will learn how to create an environment to run your MySQL database, connect to the database, and delete the DB instance. We will do this using Amazon Relational Database Service (Amazon RDS) and everything done in this tutorial is Free Tier eligible. Step 1: Create a MySQL DB Instance Login to AWS and Select  RDS  as service. Please ensure that you are selecting the region where you want your DB to be hosted. In the  Create database  section, choose  Create database . In the database creation method, Select  Standard create Select  MySQL  in the  Engine options  and select the version of the MySQL database. Select  Free tier  in  Templates  section. You will now  configure your DB instance . The list below shows the example settings you can use for this tutorial: DB instance identifier:  Type a name for the DB instance that is unique for your account in the Region that you selected. For this tutorial, we will name it  mysql-demo Master username:  Type a username

Python Underscore

Image
Using the underscore as a throwaway variable Let's say it was your job to quickly gather contact information from attendees of an event to add them to your mailing list so you can market your product. The more complex the form, the more likely people will pass on filling it out. So instead of having several input boxes, you only have two: Name and Email. Because people often have more than one family name or several middle names, storing their data in a database can be tricky. You want to create a function that takes a full name from a single field and only stores the first name and last name. Underscores are often used as throwaway variables in python. That is a variable whose value you don't care about. See the first function below for an example of how the underscore is used to collect the "extra" names so that only the first and last names are stored. Note that since the underscore is used twice in the first function, it is simply created and overwritten--which do

Types of Cloud Computing Deployment Models

Image

Getting Started With AWS and Useful Learning Resources

Image
Amazon Web Services(AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully-featured services from data centers globally. AWS’s TTM revenue was $37.549 billion as of Q1 2020 according to their earnings results , or roughly 14% of Amazon's total revenue (slide 11 in the same deck) for the same TTM period. Useful Learning Resources 1) AWS Training Center (FREE) One of best place to learn about AWS and it maintained and updated by AWS officially. AWS Training Center 2) AWS Skill Builder (FREE) Skill Builder is Collections of courses selected by AWS experts to give you a path to your learning goals and the best part is that Courses that we can learn on our own time, at our own place by digital training provided by AWS   AWS Skill Builder 3) AWS Educate Program(FREE) If you are a student, AWS offers educate program in which you can get $100 credits of AWS account for free. So that we can learn aws services hands-on using the credits