Giter Site home page Giter Site logo

0086-daylily-sam's Introduction

Project Daylily: A Step Function Demo using SNS (Simple Notification Service) and Wait state.

This is a simple demo of an AWS Step function using SNS (Simple Notification Service) and Wait state.

Description

This sample project creates a step function with a task timer. It implements an AWS Step Functions state machine that implements a Wait state, and uses an AWS Step function task that sends an Amazon Simple Notification Service (Amazon SNS) notification. A Wait state is a state type that waits for a trigger to perform a single unit of work.

The entire stack is created using AWS SAM (Serverless Application Model).

Project Daylily - Design Diagram

Project Daylily - Services Used

Project Daylily - Workflow

Prerequisite

Installing

  • Clone the repository https://github.com/subhamay-cloudworks/0086-daylily-sam

  • Create a S3 bucket to store the code repository.

  • Create the folders - daylily/cft/nested-stacks

  • Upload the following YAML templates to daylily/cft/nested-stacks

    • sns-stack.yaml
    • iam-role-stack.yaml
  • Run the following SAM CLI Commands and pass the required parameters:

sam build

sam deploy --guided --capabilities "CAPABILITY_NAMED_IAM"
  • To delete the stack, either delete it from AWS CloudFormation Console or using CLI Command:
aws cloudformation delete-stack --stack-name <Name of the stack> --region <Region>

Executing program

  • Go to the Step Function Console and use the sample input and start the execution
{
    "waitSeconds": 10,
    "Message": "Testing Step Function - Task Timer and SNS"
}

Help

Post message in my blog (https://blog.subhamay.com)

Authors

Contributors names and contact info

Subhamay Bhattacharyya - [email protected]

Reference

https://docs.aws.amazon.com/step-functions/latest/dg/sample-project-transfer-data-sqs.html

Version History

  • 0.1
    • Initial Release

License

None

Acknowledgments

[AWS] (https://docs.aws.amazon.com/step-functions/latest/dg/task-timer-sample.html)

0086-daylily-sam's People

Contributors

subhamay-cloudworks avatar

Stargazers

 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.