Steps for Snapshot Management

Note: For running the script you need to install AWS CLI in the terminal with user ubuntu. You can install by typing sudo apt-get install awscli –y OR you can refer the following URL https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html. Once you installed the AWS CLI you need to enter the AWS IAM user credentials by typing aws configure.

For Snapshot Management, we have created the script which helps you to set a retention period for the snapshots. This script will create a cron for automatic backup at 2:00 AM UTC.

By default we are not running the script, you can run it by logging into the terminal or shell with the instance login method and then type the below command : sudo bash /var/www/html/iscripts/rp.sh

  1. After logging into AWS, select the preferred region, Then select the EC2 service
    Step 1
  2. Click on Instances and then select your instance to Connect
    Step 2
  3. After Selecting connect. You will see a page similar to below image.
    Windows Users: Please convert .pem key to ppk via puttykeygen software. You can follow this by step-1 to access your instance.
    UNIX/LINUX/MAC Users: Go to the location of .pem key and follow the step-3 from the image given below in your terminal to give permissions to the pem file.
    Next, you can execute the command in your terminal for accessing the server which can be found in the Example section of the image given below.
    (Remember this command is run only .pem key location and use 'ubuntu' or 'ec2-user' instead of root).
    Step 3
  4. To connect to the instance, execute the below command
    Note: Your user might be ubuntu or ec2-user instead root
    Step 4

Snapshot Management
IAM User Access Key

  1. Click on Services and open IAM Console
    Step 1
  2. In the navigation panel, Choose Users, Click on Manage and tick the Access Key ID to know the access key for all the Users.
    Step 2

    Note: You can also create new Access key and Secret Key for the Users from the Security Credentials Tab

Method -2 IAM Permission Role

  1. In IAM Service , Go to Dashboard and click on Roles and create a new Role
    Step 1
  2. Now choose Role type and select Amazon EC2 and select Next Step
    Step 2
  3. In policy list select AmazonEC2FullAccess and Click Next

    Step 3
  4. Now Name the Role and Click on Create Role
    Step 4
  5. Now , go to the EC2 instance and select the instance, Click on Action and Select instance Setting. Now select the Attach/Replace IAM Role to Attach the role to the instance
    step 5
  6. In Dropdown select the IAM role which you have created previously and then Apply
    step 6
  7. Now once the Role is attached Login into the terminal and run the below Commands after installing AWS CLI
    step 7

Let's Talk

Let us know if there’s an opportunity for us to build something awesome together.

USA

18 Bartol Street Suite #130,
San Francisco CA 94133

USA

2430 Camino Ramon,
San Ramon CA 94583

India

1006 Pinnacle, Corporate Road,
Ahmedabad, GJ 380051

Connect

+1 650.451.1499
getstarted@intuz.com

scroll-top