AWS CDK (Python) How to Create EKS Cluster

In my previous post, I have discussed about how to create vpc, subnets, internet gateway, nat gateway using AWS CDK(Python). In this post, we will be discussing about how to create EKS (k8s) cluster. This is requested by many of my followers, so I would like to write a blog to help the community. CreateContinue reading “AWS CDK (Python) How to Create EKS Cluster”

AWS CDK (Python)- How to Configure VPC, Subnets, Internet gateway, NatGateway

So far, i’ve discussed about how to configure vpc, subnets, natgateway, ec2 using terraform, in this post i’m going to discuss how to configure VPC, Subnets, Internet Gateway, NatGateway with AWS CDK using python as language. We don’t need to write any complex cloudformation scripts, we use AWS CDK to construct resources. For more informationContinue reading “AWS CDK (Python)- How to Configure VPC, Subnets, Internet gateway, NatGateway”

Configure EC2, ALB using terraform

Continuation to the previous article I’m going to demonstrate how to create AWS EC2, ALB. Backend.tf Providers.tf variables.tf datasources.tf vpc.tf publicsubnets.tf privatesubnets.tf create iam roles , polcies for ec2 instance ec2_assume_role.json ec2-policy.json (This policy grants s3 list put and get, ec2 full access ) create s3 bucket ec2-sg.tf ec2.tf The above script creates ec2 instanceContinue reading “Configure EC2, ALB using terraform”

How to configure VPC, Network, Internet gateway, NAT Gateway using terraform

Continuation to the previous article, I’m going to demonstrate how to configure vpc, public subnet, internet gateway, private subnet, NAT Gateway. I’ve modified the scripts to simplify and easy to manage. Backend.tf I’ve added dynamodb for locking the terraform state. Locking helps make sure that only one team member runs terraform configuration. Providers.tf variables.tf Datasource.tfContinue reading “How to configure VPC, Network, Internet gateway, NAT Gateway using terraform”

How to configure VPC, Network, Internet gateway using terraform

Continuing to previous airtcle , let us setup network using terraform. To begin with, let us create terraform variables, providers I’ve created profile and region as two variables that I will be referring in the terraform resources. variable.tf provider.tf Let’s run terraform init Now you can see that aws provider has been created. You canContinue reading “How to configure VPC, Network, Internet gateway using terraform”

How to configure terraform state file as Amazon S3

In this blog post, I would like to present how to create terraform state file as s3. I will be writing series of blog posts about terraform, ansible automation, How to use AWS CDK to automate infrastructure. To begin with, Let us start about how to configure terraform state file as Amazon S3. Before youContinue reading “How to configure terraform state file as Amazon S3”

Kubernetes Useful Commands

I have been using kubernetes over 3 years and would like to write a blog to provide useful commands How to get currently running pods? kubectl get pods (default namespace) kubectl get pods –all-namespaces kubectl get pods -o wide , kubectl get pods -all-namespaces -o wide  (This will display more details of the pods) HowContinue reading “Kubernetes Useful Commands”

AWS Lambda Python Script to create Database Snapshots

The below script is used to create a database manual snapshots on all regions in an AWS account.  RDS support automatic snapshots which are very useful for point in time recovery but it does not protect you from accidental deletion of RDS instances. Here are the reasons why we need manual snapshots Accidental RDS InstanceContinue reading “AWS Lambda Python Script to create Database Snapshots”

AWS Lambda to generate CSV file from RDS PostgreSQL

One of the requirement was to generate csv file for set of queries from RDS PostgreSQL and upload the csv file to s3 bucket for power bi reporting. Powerbi connects to s3 url and generate report. There is no gateway to connect to PostgreSQL instance from power-bi, hence we need to have a mechanism toContinue reading “AWS Lambda to generate CSV file from RDS PostgreSQL”