899c510e76
EBS & ELB mainly.
1.2 KiB
1.2 KiB
AWS - Create EFS
Requirements
Two EC2 instances in different availability zones
Objectives
- Create an EFS with the following properties
- Set lifecycle management to 60 days
- The mode should match a use case of scaling to high levels of throughput and I/O operations per second
- Mount the EFS in both of your EC2 instances
Solution
- Go to EFS console
- Click on "Create file system"
- Create on "customize"
- Set lifecycle management to "60 days since last access"
- Set Performance mode to "MAX I/O" due to the requirement of "Scaling to high levels of throughput"
- Click on "Next"
- Choose security group to attach (if you don't have any, create one and make sure it has a rule to allow NFS traffic) and click on "Next" until you are able to review and create it
- SSH into your EC2 instances
- Run
sudo yum install -y amazon-efs-utils
- Run
mkdir efs
- If you go to your EFS page and click on "Attach", you can see what ways are there to mount your EFS on your instancess
1. The command to mount the EFS should be similar to
sudo mount -t efs -o tls <EFS name>:/ efs
- copy and paste it in your ec2 instance's OS