Posts

AWS RDS STOP & START

AWS RDS STOP & START 1.  Step1: Create IAM Role and attach the below policy. {     "Version": "2012-10-17",     "Statement": [         {             "Action": [                 "rds:DescribeDBInstances",                 "rds:StopDBInstance",                 "rds:StartDBInstance"             ],             "Effect": "Allow",             "Resource": "*"         }     ] } 2.  Create RDS start function-Python 2.7 and use the below script import boto3 import logging def lambda_handler(event,context): logger = logging.getLogger() logger.setLevel(logging.INFO) #Boto3 connection try: rds=boto3.client('rds') logger.info("Connected to ...

Double-Take Move For Windows

Double-Take Move is a comprehensive migration solution. It allows you to move an entire server, known as a source, by mirroring an image of that source to another server, known as the target. The source and target servers can be physical or virtual. Step1 You can download the Double take Move for windows from Vision solution URL using your login credentials. Step2 Once download completes, Please install the DT Move for Winows on Source Server. Step3 As you have downloaded latest version from website, you can select No, Skip upate option and accept the licence agreement.   Step4 License activation read the information and click Next and select client and server components on following screen. Step5 The Double-Take installation program will automatically attempt to configure ports 6320, 6325, and 6326 for Double-Take. If you cancel this step, you will have to configure the ports manually. Step6 Import your sourc...

Building Jenkins on AWS

Installation Steps : 1. Please launch an Amazon Linux instance using Amazon Linux AMI. 2. Login to your Amazon Linux instance. 3. Become root using “sudo su -” command. 4. Update your repositories # yum update Get Jenkins repository using below command wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo Get Jenkins repository key rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key Install jenkins package # yum install Jenkins     Start jenkins and make sure it starts automatically at system startup # service jenkins start # chkconfig jenkins on     # Edit AWS instance security group and allow your public IP to reach Jenkins server.     Open your browser and navigate to http://<Elastic-IP>:8080. You will see jenkins dashboard.     That’s it. You have your jenkins setup up and running. Now, you can create jobs to build the code....

Scheduling Elastic Block Storage (EBS) Snapshots with AWS Lambda

Scheduling Elastic Block Storage (EBS) Snapshots with AWS Lambda   Traditionally, scheduling snapshots of your Elastic Block Storage (EBS) volumes required the setup and maintenance of an EC2 instance or the use of a third-party service like Skeddly . Depending on cost or security concerns (having to grant a service like Skeddly access to your AWS account) this may not be an option. Additionally, storing your access keys on an EC2 instance may not be acceptable, even if you limit the IAM role to only allow the creation and deletion of snapshots. Enter AWS Lambda. This service allows you to write a small application in either Node.js, Java, or Python that is executed either on a schedule or in response to other events. In this article we will be focusing on creating a Python script that creates EBS snapshots once a day and deletes backups older than a week from creation to keep storage costs in check. Just a couple notes before we begin: The Python code below is a ...