Git Product home page Git Product logo

provision-fsx-lustre-step-function's Introduction

Provision FSx for Lustre Filesystem using a Step Function

Architecture

Architecture

AWS Services Used

  • S3
  • SNS
  • Lambda
  • Step Functions
  • FSx for Lustre
  • CloudWatch Alarms

Justification

This example demonstrates the following concepts:

  • Chaining AWS Services using CDK
  • Disconnected Event Notifications and Handling
  • Creation of resilient storage to attach
  • Asynchronous processing of request
  • Leveraging Serverless compute to perform a workflow
  • Scalable, Serverless Architecture

Prerequisites

To deploy this CDK Application you will need the following

Deploy via CDK

Note: A Makefile is included in this project to wrap commands. You can review the available commands using make help

The cdk.json file tells the CDK Toolkit how to execute your app.

Local Setup

This project utilizes python and poetry. It assumes that these 2 pre-requisites are installed. NOTE: In app.py, you will need to replace <SOME VPC ID> with an AWS VPC ID to be able to deploy. NOTE: In app.py, you will need to replace <SOME SUBNET ID> with an AWS SUBNET ID to be able to deploy.

To initialize the environment to run this sample:

$ make init

It is also necessary to have an AWS Account Region that is bootstrapped to run CDK.

$ make bootstrap

NOTE: To add additional dependencies, for example other CDK libraries, you will need to run a poetry command.

$ poetry add <package_name>

At this point you can now synthesize the CloudFormation template for this code.

$ make synth

Now you can deploy the CloudFormation to AWS.

$ make deploy

You can now begin exploring the source code, contained in the directory.

To run the Step Function deployed with this stack, you can simply invoke it directly. It does not require any special inputs and will complete after provisioning is completed.

Finally, to cleanup and remove the stack from the AWS account you can run the command below. NOTE: If you have invoked the Step Function to create an FSx for Lustre filesystem, you will need to delete those filesystems prior to running the teardown of the stack.

make teardown

Testing

There are basic unit tests included that can be run using the following command:

$ make test

Unit Tests for this project are located in the tests\unit folder

Other Useful CDK commands

If you wish to run these ny of the following commands for this project you will need to prefix them with poetry run <command>.

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

provision-fsx-lustre-step-function's People

Contributors

aabragan avatar dependabot[bot] avatar ryansonshine avatar shivkmin avatar sowjie avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

aabragan

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.