Sharing EFS File Storage between EC2 instances | Scribe

    Sharing EFS File Storage between EC2 instances

    • Hafeez Baig |
    • 34 steps |
    • 3 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard

    information ordinal icon

    **What is EC2?** Amazon EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that allows users to rent virtual servers, known as instances, to deploy and run their applications in the cloud. EC2 offers a wide range of instance types with varying compute, memory, storage, and networking capacities, giving users flexibility to choose the resources that best match their workload requirements.

    3

    On the EC2 dashboard click on **Instances** from the left bar to view the EC2 instances

    4

    On the Instances wizard, select the **EBS Instance A** instance

    information ordinal icon

    Refer to this guide to learn how to create an EC2 Instance\ <https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ>

    5

    Scroll to the **EBS Instance A** horizontal section and click on the **Security** tab

    6

    Scroll to the **Security groups** section and click on the **sg-default** link

    information ordinal icon

    **What is a Security group?** A security group in Amazon Web Services (AWS) acts as a virtual firewall for instances, controlling inbound and outbound traffic based on user-defined rules. It provides a fundamental layer of network security for AWS resources.

    7

    **default security group** wizard will open, scroll to the **Inbounbd rules** section and on the right side click on the **Edit Inbound rules** button

    8

    Click on the **Add rule** button

    information ordinal icon

    **What is Inbound rule?** An inbound rule is a set of instructions within a security group or network ACL that controls incoming traffic to a specific resource, like an instance, by defining allowed or denied criteria such as source IP addresses, protocols, and destination ports.

    9

    Click on the **Type** dropdown and select the option **NFS**

    10

    Type "**sg**" in the text input field for **Source** and select the **default security group** from the dropdown the click on the **Save rules** button

    11

    Inbound security group rules successfully modified on default security group

    information ordinal icon

    Congratulations on the successful update of the inbound security group! Well done!

    12

    On the EC2 dashboard click on **Instances** from the left bar to view the EC2 instances

    13

    On the Instances wizard, select the **EBS Instance A** and **EBS Instance B** instances and on the top right corner click on the **Connect** button

    information ordinal icon

    Connect both the instances with EC2 Instance Connect