Coder Social home page Coder Social logo

lambda_efs's Introduction

Overview

This repository implements an AWS Lambda function that connects to an Amazon EFS access point.

Initialize

Copy the etc/environment.template file to etc/environment.sh and initialize the following variables: PROFILE, S3BUCKET, P_VPCID as specified. Copy etc/params_efs.template to etc/params_efs.json and initialize the ParameterValue fields.

Deploy EFS

Run make efs.create initially or make efs.update if updating to deploy an EFS filesystem, mounts, and access points. Copy outputs from the stack to the following variables: O_SECURITY_GROUP_LAMBDA, O_EFS_FILESYSTEM_ARN, O_EFS_ACCESS_POINT_ARN.

Deploy the Lambda function

Run make lambda to deploy the Lambda function.

Test the Lambda function

Run make lambda.local to test the function locally using SAM local. Run make lambda.invoke.sync to invoke the function within your AWS account.

When executing locally, you will see something like the following:

{
  "envvar1": "tbd",
  "envvar2": "tbd",
  "filesystem_location": "/tmp",
  "ip_address": "1.2.3.4",
  "region": "us-east-1",
  "execution_env": "AWS_Lambda_java11"
}

When executing in your AWS account, you will see something like the following:

{
  "initialization_type": "on-demand",
  "envvar1": "tbd",
  "envvar2": "tbd",
  "filesystem_location": "/mnt/efs",
  "ip_address": "1.2.3.4",
  "region": "us-east-1",
  "execution_env": "AWS_Lambda_java11"
}

lambda_efs's People

Contributors

heeki 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.