EC2 Backup Manager : Python Scripts One of the most important requirements in any projects is regular backups. On one of our projects we were using Netflix's backup monkey and graffiti monkey combined to take snapshots of all the volumes in the account. But this deviated slightly from our requirement, we only required the backups of...
Yesterday AWS rolled out the new feature to enhance security for IAM user Access and Secret Key.Going forward now, IAM reports the time stamp when access keys were last used along with the region and the AWS service that was accessed.All these details can be seen from the IAM console, programmatically via the API/CLI/SDK, or in the...
To start, we create a Lambda function to consume events published by Amazon S3. For any object uploaded to a bucket, S3 will invoke our Lambda function by passing event information in the form of function parameters. AWS Lambda executes the function. As the function executes, it reads the S3 event data, logs some of the event information...
In continuation with my previous blog "Getting Started with Boto ( python Interface for AWS )", today we are going to discuss one of the use case that we used to do daily. Deleting EBS Snapshot which is N days older. We'll be writing python script using Boto library to delete EBS snapshots which is 30 days older. For this we will be...
This blog post refers to the limitation of not being able to directly spin an instance using an ISO image and to connect a virtual CD ROM with AWS instances. Till date, only workaround for this problem is to create an on-premise virual machine on some hypervisor such as VMware esxi or Cetrix Xen etc. and then import VMDK or VHD image of...
You must be wondering how to make AMI of the Web Server(EC2 instance) in which you have made some changes. In this blog I will walk you through a script that will ease up your work and make AMI of instances with user specified tags. Consider a use-case where user has made some changes to the Web Server and he wants to take AMI...
You might be wondering how to audit your Ubuntu server / your Ubuntu local machine. Well, In this blog I will show you how easy it is do so. Auditing can be done by many ways of which few we shall discuss here. There are 3 following scenarios which we will be discussing :- 1.Finding from where logins are done & commands are executed ...
FAIL2BAN Port 80 is used to protect sites from DOS Attacks. Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc. Generally Fail2Ban is then used to update firewall rules to reject the IP addresses for a specified amount of time,...
So what is AWS VPC Peering ? A VPC peering connection is basically a networking connection between two VPCs that enables you to route traffic between them using private IP addresses. Basics of VPC Peering So what does it take to make a VPC peering connection ? Firstly the owner of the requester VPC sends a request to the owner of...
Jenkins is an extensible open source continuous integration server. Using Jenkins we can perform the tasks automatically from our server or localhost. A script is created and built just once . Then, you can run the script by just clicking on Build link in Jenkins. The scripts can be scheduled using Jenkins. You can visit the following...
AWS has great set of tools which helps simplify the deployment process in their cloud and one such tool is AWS CodeDeploy. In this blog, we will deploy the application using AWS CodeDeploy using S3. Read our blog on: AWS CodeDeploy – A Sample Walkthrough Consider a use case where you have 20 instances and you want to deploy...
AWS WorkSpaces is a service provided by AWS which provides you a cloud based desktop and allow you to access it form different devices like laptops, iPad, Amazon kindle and Android Tablets using WorkSpaces Client. Directory Service is a service provided by AWS which is fully managed Active Directory which helps you launch your windows...