DEV Community

Aravind kumar TS
Aravind kumar TS

Posted on

EBS,EFS,AWS Config, Cloud Trail, AWS Backup

๐„๐๐’ - ๐„๐ฅ๐š๐ฌ๐ญ๐ข๐œ ๐๐ฅ๐จ๐œ๐ค ๐’๐ญ๐จ๐ซ๐š๐ ๐ž - Its a block level storage, which means the data is stored as block chunks. An EBS volume can be shrink or expanded according to our requirement. We have various types of EBS volumes such as General purpose SSD, Provisioned IOPS, etc.
When you create an EC2 Windows instance post attaching an EBS volume, login to the EC2 instance and we can do manual partition of volumes. The root volume of an EC2 instance consists of Operating System so it has to be minimum 100 GB, The other volumes that you create for a Linux instance can be mounted by following the below steps.

  1. lsblk ( lists the available volumes attached to the disk)
  2. mkdir newdisk (creates a directory named newdisk)
  3. mkfs -t ext4 /volumename -- that is the unattached volume is formatted here)
  4. mount /dev/xvdf( un attached volume) /newdisk Thus an EBS volume gets mounted and ready for use in Linux EC2 machine. ๐„๐…๐’ - ๐„๐ฅ๐š๐ฌ๐ญ๐ข๐œ ๐…๐ข๐ฅ๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ - Its a file level storage which can be shared with multiple EC2 instances
  5. Create two or more EC2 Machine, create security groups
  6. Create an EFS system, create a security group, allow the EC2 machines security group as inbound rule, NFS default port. Login to your EC2 machines and create mkdir EFS, install amazon efs utils and follow the commands to mount the EFS volumes to multiple EC2 instances one by one. EFS systems is auto scalable. In the command given by amazon in pop ups/console the filesystem id has to be replaced with the EFS file system id that we created. ๐€๐–๐’ ๐‚๐จ๐ง๐Ÿ๐ข๐  - Any configuration changes we make in our AWS account can be monitored here, AWS provides many configuration rules. For example any mfa disabled or EC2 tag name changes then it can be made to get notified to the user/customer via SNS email notification. The notifications can be stored in a S3 bucket as well using Lambda function, Cloud watch log group. AWS Cloud Trail - The activities done by an IAM user can be identified by enabling the Cloud Trail service. Any API calls made in an AWS account can be identified using Cloud Trail. AWS Backup - When you create an EC2 instance you can create a full image of it ( a kind of snapshot backup where it is point in time copy storage concept, the image you created can be used to create a new instance with all data), Its always a good practice to create a full image of your EC2 machines and name it with appropriate tags). Rather than doing these manually, we can enable AWS Backup service and specify the resources to be backed up based on intervals like 8 hours once, 12 hours once, 24 hours once etc. The resources can be EC2, Storage, Database, S3, EFS etc. #aws #awscloud #awscommunitybuilders

My articles - https://lnkd.in/gq7fdDvR

Oldest comments (0)