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”
Category Archives: AWS
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”
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 Python Script to Cleanup EBS Volumes
The below is useful lambda function to delete EBS volumes older than ‘x’ days on all regions in the aws account. Hope you enjoyed the post. Cheers Ramasankar Molleti LinkedIn
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”
Lambda to delete indices older than ‘x’ days on Elastic Search
This is simple example of how we can delete the indices older than ‘x’ days. This example needs aws4auth, elasticsearch, curator modules installed. You can build these modules on using linux machine. I’ve used one of the ec2 instance that has amazon linux installed. # Install Dependancies yum -y install python-pip zip pip install virtualenvContinue reading “Lambda to delete indices older than ‘x’ days on Elastic Search”
How To Create Jupyter Notebook using Amazon SageMaker
In this blog post, i would like to present how to create Jupyter Notebook and run various commands using Amazon Sagemaker What is Jupyter Notebook? The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning andContinue reading “How To Create Jupyter Notebook using Amazon SageMaker”