Skip to content

aws-solutions/simple-file-manager-for-amazon-efs

SFM logo

Simple File Manager provides access to Amazon EFS through a RESTful API and responsive web app. Together, these components allow you the ability to manage data in your Amazon EFS filesystem from any location or device that can access the internet. You simply log-in to the Simple File Manager application from a web browser and directly upload, view, delete, or download data from any filesystem in your AWS account. All without the need to setup or maintain any dedicated EC2 or networking infrastructure.

You can deploy the open source solution by clicking one of the one-click deployment links in the install section below.

Install

Install the solution by visiting the AWS Solutions library and selecting Launch in the AWS Console:

https://aws.amazon.com/solutions/implementations/simple-file-manager-for-amazon-efs/

Getting Started

  1. Launch the solution by following the steps in the Install section.
  2. Follow the stack creation prompts in CloudFormation.
  3. When the deployment is completed, you will find the URL to the application in the "Outputs" tab of the stack.
  4. Navigate to the application URL in a web browser.

During stack creation, you will have received an email containing your initial login credentials.

  1. Use the inital credentials to sign in. You will be required to create a new password.
  2. Upon successful authentication, the application will route you to the home page, where you will see all the EFS Filesystems in your account for the selected region.
  3. To grant Simple File Manager access to a file system, click the link labeled "false". This will take you to the file manager lambda creation page.
  4. In the form, fill out the required input fields. Leave them at their default values if you're unsure what the options are.
  5. Click submit and wait for the application to complete the request.
  6. After completion, you will be routed back to the home page.

Lambda can take several minutes to provision a new function. Please allow 1-2 minutes if the managed state returns "Creating" and refresh the page.

  1. The link previously labeled false now returns true and the file system id is now a clickable link.
  2. Click on the file system id link to access the file system.

The application will route you to the file system page, where you can now perform file system operations. The current supported operations are: List, Make directory, Upload, Download, and Delete.

Cost

The cost to deploy and use the solution is minimal due to its serverless architecture, which means users pay a small fee per request, rather than an always-on fee. In most cases the cost will fall entirely within the AWS Free Tier.

Installation Parameters

Required parameters

Stack Name: The name of the stack.

Admin Email: The email address that will be used by the application Admin. The inital credentials will be sent to this address.

Architecture

SFM simple

A detailed architecture diagram can be found in the docs directory


Building distributable for customization

Prerequisites

  • Install/update to Python 3.x
  • Install/update npm, this is needed to build and install the Vue.JS Web interface.
  • Install the AWS Command Line Interface (CLI)
  • Create an S3 bucket to store your CloudFormation template and resources with the instructions listed below.

Running unit tests for customization

  • Clone the repository, then make the desired code changes
  • Next, run unit tests to make sure added customization passes the tests
cd test/unit
chmod +x ./run_unit.sh  
./run_unit.sh api
./run_unit.sh manager
  • Configure the bucket name of your target Amazon S3 distribution bucket

Note: You would have to create an S3 bucket with the prefix 'my-bucket-name-<aws_region>'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be publicly accessible.

  • Now build the distributable: For example if you want to deploy in us-east-1 make sure you have a bucket that is named BUCKET_BASE_NAME-region where region is us-east-1 or which ever region you are wanting to deploy your deployment assets to. Version number can be changed to what ever you want, I put 1.0.0 as a placeholder.

This script will use the default AWS profile in your AWS CLI to upload assets to the bucket you provide. Note: you must have the AWS Command Line Interface installed.

chmod +x ./build-s3-dist.sh \n
./build-s3-dist.sh --template-bucket BUCKET_BASE_NAME-us-east-1 --code-bucket BUCKET_BASE_NAME --version 1.0.0 --region us-east-1 \n
  • Get the link of the solution template uploaded to your Amazon S3 bucket. The main template is called efs-file-manager.template

  • Deploy the solution to your account by launching a new AWS CloudFormation stack using the link of the solution template in Amazon S3.


Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://www.apache.org/licenses/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.