Giter Site home page Giter Site logo

rbilleci / aws-endpoint-service-efs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 48 KB

This AWS CloudFormation shows how to make EFS accessible to another account using VPC Endpoint Services.

aws efs cloudformation vpc-endpoint vpc-endpoints privatelink

aws-endpoint-service-efs's Introduction

AWS VPC Endpoint Service for EFS

NOTICE: This project is an example and not intended for production deployments.

This AWS CloudFormation shows how to make EFS accessible to another account using VPC Endpoint Services.

EFS Example

Instructions

  1. The template should be deployed in the AWS account managing the EFS volume. You will need to provide the following as inputs:

    • Account Number for the AWS account that will use the EFS volume.
    • VPC ID where the EFS volume will be deployed to
    • VPC Subnets for the EFS mount targets.
    • VPC CIDR Range, used to restrict access to the EFS volume
  2. When the template is deployed, the AWS CloudFormation Outputs shows the service name of the VPC Endpoint Service. Provide this service name to the consumer account.

  3. In the consumer account, create a new VPC Endpoint, using the service name. Specify a Security Group that allows ingress to port 2049. The consumer must wait for acceptance.

  4. In the service account, accept the connection request. It may take a few minutes for the consumer to see the acceptance.

  5. In the consumer account, the VPC Endpoint connection is now established. The VPC Endpoint will have a DNS name that clients can use to mount the volume. You need to use a mount command like:

    sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport VPC_ENDPOINT_DNS_NAME:/ efs

    Make sure to replace VPC_ENDPOINT_DNS_NAME

Optimizations

  • Availability - this example demonstrates deployment of EFS and the NLB to two Availability Zones. For production, you may want to deploy to three or more Availability Zones.
  • EFS Performance - the EFS volume is configured to use the default settings. You may need to adjust the throughput and mode of the volume for your use case.
  • Network Load Balancer / Cross Zone Load Balancing - you may want to review this setting and adapt.
  • Network Load Balancer / Sticky Sessions - you may want/need to enable sticky sessions based on source ip address.

aws-endpoint-service-efs's People

Contributors

rbilleci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.