What is Chef Template, dealing with files in Chef and more

What is Chef Template, dealing with files and more!

In this article we will dig in some of the Chef resources, you can check all about chef here and how to install it by following this link.

What is Chef Template Resource

Simply they are Ruby ERB files which will act as a template for your cookbooks recipes.

How create a template ?

Continue reading

AWS Placement Groups

AWS Placement Groups

 

What is AWS Placement Group ?

A placement group is a cluster of instances that are all in the same AZ. These instances have 10 Gbps networks and they need to have the “Enhanced Networking” feature. You need to put instances into a placement group if they need to have very low latency between them.

Continue reading

AWS Interview Questions – Part 2

AWS Interview Questions

This article is a continue to the first part, to check the first part of AWS interview questions then follow this link.

 

How to use EBS on EC2 and run EBS Backup ?

Create Elastic Block Store "EBS" and then attach it from the console to your desired EC2, create filesystem and format it like normal physical storage.

Backup

#1 Using Console

  1. Connect to AWS Console
  2. Search for EC2.
  3. Choose EBS then Snapshots.
  4. Choose create snapshots.
  5. Select the volume in the dialogue bar.

Continue reading

AWS EBS Daily Automated Backup

AWS EBS Backup

How to Create AWS EBS Daily Automated Backup

In this tutorial i will show you how to create automated daily backup for AWS EBS using CloudWatch by creating an event and choose specific Volume ID

  1. Login to AWS Console.
  2. Search for CloudWatch inside the searchbar.
  3. Select 'Events'.
  4. Select 'Create rule'.
  5. Choose 'Schedule'.
  6. Add recurrence time by cron or fixed rate.
    • Cron example: "0 5 * * 0" means every Sunday at 5am
  7. Select 'Add target'.
  8. Choose 'EC2 Create Snapshot API Call'.
  9. From Volume ID choose desired EBS. "You can add multiple EBS Volumes as multiple targets"
  10. Select 'Configure Details'.
  11. In this screen just add a name and description for the event rule to differentiate it than other rules.
  12. Inside AWS Permissions create a new role which will open a new window
    1. Select 'Allow' button.
  13. Select 'Create Rule'.