Home

Creating private subnets for Unravel's Lambda function

To ensure that Unravel's Lambda Function can access Unravel Node port 4043 and a specific S3 bucket, you might need to create private subnets by following these steps.

Step 1: Create private subnets
  1. In the AWS VPC dashboard, click Create subnet.

    aws-vpc-dashboard-1.png
  2. Create two subnets within the same VPC Unravel Server is located.

    IPv4 CIDR block is the block of IP addresses that you're assigning to this subnet. This value can be different based on your environment. For example,172.31.64.0/24 means IP addresses between 172.31.64.0 and 172.31.64.255 are assigned to this subnet.

    aws-vpc-dashboard-subnet1.png
    aws-vpc-dashboard-subnet2.png
Create a route table
  1. Create a route table for the two private subnets.

    In VPC field, specify the VPC ID that Unravel Server instance is using.

    aws-vpc-route-table-1.png
  2. Associate the two subnets with this route table.

    aws-vpc-route-table-2.png
    aws-vpc-route-table-3.png
Create a NAT gateway
  1. On the VPC Dashboard, click Create NAT Gateway.

    aws-vpc-nat-1.png
    aws-vpc-nat-3.png
  2. Attach the NAT gateway to a public subnet with an elastic IP:

    • Subnet is the public subnet within Unravel VPC.

    • Elastic IP ID is the elastic IP (EIP). If there is no available EIP, click Create New EIP.

Add the NAT gateway to the route tables
  1. Select Unravel Lambda Route Table.

    aws-vpc-nat-4.png
  2. Select the Routes tab.

  3. Click Edit routes.

    aws-vpc-nat-5.png
  4. Add the route gateway.

  5. Click Save routes.

References
Internet Access Lambda Function
VPC Route Tables
VPC NAT Gateway