serverless-step-functions | AWS Step Functions plugin for Serverless Framework ⚡️ | Serverless library

 by   serverless-operations JavaScript Version: v3.13.0 License: Non-SPDX

kandi X-RAY | serverless-step-functions Summary

kandi X-RAY | serverless-step-functions Summary

serverless-step-functions is a JavaScript library typically used in Serverless applications. serverless-step-functions has no bugs, it has no vulnerabilities and it has medium support. However serverless-step-functions has a Non-SPDX License. You can download it from GitHub.

This is the Serverless Framework plugin for AWS Step Functions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              serverless-step-functions has a medium active ecosystem.
              It has 971 star(s) with 189 fork(s). There are 21 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 92 open issues and 226 have been closed. On average issues are closed in 34 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of serverless-step-functions is v3.13.0

            kandi-Quality Quality

              serverless-step-functions has 0 bugs and 0 code smells.

            kandi-Security Security

              serverless-step-functions has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              serverless-step-functions code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              serverless-step-functions has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              serverless-step-functions releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed serverless-step-functions and discovered the below as its top functions. This is intended to give you an instant insight into serverless-step-functions implemented functionality, and help decide if they suit your requirements.
            • Get the permissions for a lambda access
            • Get CloudWatch alarms .
            • Convenience function to get the permissions granted to all tasks in the stream .
            • Apply a given resource
            • Returns the DynamoDB name for the given table .
            • Creates the target target .
            • Convert a Lambda function to a function name .
            • Compile the permissions for a target .
            • Creates an IAM role for a role
            • Validates the stateless config .
            Get all kandi verified functions for this library.

            serverless-step-functions Key Features

            No Key Features are available at this moment for serverless-step-functions.

            serverless-step-functions Examples and Code Snippets

            No Code Snippets are available at this moment for serverless-step-functions.

            Community Discussions

            QUESTION

            Serverless Framework - Unable to Deploy Step Function
            Asked 2022-Feb-11 at 12:31

            I have the following serverless yaml that I'm using to try to deploy my first step function:

            ...

            ANSWER

            Answered 2022-Feb-11 at 12:31

            Problem was due to yaml formatting. Line 192

            Fn::GetAtt: [PullSqlSvr, Arn]

            This needed an extra tab to indent below "Resource:"

            Source https://stackoverflow.com/questions/71068564

            QUESTION

            Serverless Framework - Cannot generate IAM policy statement for Task state
            Asked 2022-Feb-08 at 16:32

            I'm trying to use serverless framework to deploy a step function that calls a couple of lambdas. Here's my serverless.yml:

            ...

            ANSWER

            Answered 2022-Feb-08 at 14:41

            In my experience serverless-step-functions fails to deploy properly if any keys in the Steps block begin with a lowercase letter. Changing it to the seemingly case-sensitive equivalents, like the following, and redeploying may do the trick:

            Source https://stackoverflow.com/questions/71035349

            QUESTION

            Serverless Framework - Value not found at "self" source
            Asked 2022-Feb-08 at 12:55

            I have the following serverless.yml file:

            ...

            ANSWER

            Answered 2022-Feb-08 at 12:55

            Thanks to @eli6 for the tip about serverless print. I don't know the root cause of the problem but after restarting vscode serverless print and serverless deploy then worked

            Source https://stackoverflow.com/questions/71032995

            QUESTION

            How should we configure apigateway--> step function proxy in AWS serverless framework?
            Asked 2021-Nov-16 at 12:43

            We are using serverless framewotk (AWS) to create :

            This is the current code which uses the serverless-step-functions plugin :

            ...

            ANSWER

            Answered 2021-Nov-16 at 12:43

            To Configure AWS API Gateway integration to step function you have to follow these steps:

            1. Configure Api gateway resource

            Source https://stackoverflow.com/questions/69962856

            QUESTION

            AWS step function: how to pass InputPath to OutputPath unchanged in Fargate task
            Asked 2021-May-07 at 12:47

            I have an AWS steps function defined using this Serverless plugin with 3 steps (FirstStep -> Worker -> EndStep -> Done):

            ...

            ANSWER

            Answered 2021-May-07 at 12:47

            Given that you invoke the step function with an object (let's call that A), then a task's...

            • ...InputPath specifies what part of A is handed to your task
            • ...ResultPath specifies where in A to put the result of the task
            • ...OutputPath specifies what part of A to hand over to the next state

            Source: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-example.html

            So you are currently overwriting all content in A with the result of your Worker state (implicitly). If you want to discard the result of your Worker state, you have to specify:

            Source https://stackoverflow.com/questions/67298384

            QUESTION

            serverless step functions: Getting error when passing more than one fields in the payload for lambda
            Asked 2021-Mar-22 at 18:21

            Error: Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The value for the field 'Date.$' must be a valid JSONPath at /States/Insert Data Dynamodb/Parameters' (Service: AWSStepFunctions; Status Code: 400; Error Code: InvalidDefinition;

            below is the corresponding serverless.yaml code.

            I tried wrapping the two parameters into encoded json string and passed it as single payload field and it resulted in the same error but when there is only one plain field in the payload this code deployed successfully

            Any suggestions on how to pass two parameters?

            ...

            ANSWER

            Answered 2021-Mar-22 at 18:21

            Your Date.$ property has value of ${self:custom.dates.year}${self:custom.dates.month}${self:custom.dates.day}. Let's assume that:

            Source https://stackoverflow.com/questions/66741169

            QUESTION

            How to use the serverless environment variable in stepfunction parameter
            Asked 2021-Mar-18 at 05:27

            I have a query with hardcoded dates used in the parameters section.Instead I want to pass them as environment variables.Any suggestions on how to parameterize the QueryString parameter?

            ...

            ANSWER

            Answered 2021-Mar-18 at 05:27

            you can replace any value in your serverless.yml enclosed in ${} brackets,

            Serverless Framework Guide to Variables: https://www.serverless.com/framework/docs/providers/aws/guide/variables/

            for example, you can create a custom: section looking for environment variables, and if they are not present, you can have default values:

            Source https://stackoverflow.com/questions/66685054

            QUESTION

            Send message to sqs while catch error in stepfunctions
            Asked 2021-Jan-08 at 02:48

            i am using serverless framework with serverless-step-functions plugin. I want to check any errors in my stepfunction workflow and send this error to sqs queue.

            Currently I want to pass all input as message to the queue(MessageBody: $). But if I get the data from the queue, message is $ (dollar sign) and not actual input. How can I send to queue the error message from the previous step?

            ...

            ANSWER

            Answered 2021-Jan-08 at 02:48

            I have got the same when connecting SNS. As per the AWS doc, we have to follow the below structure to send the parameters

            "MessageBody.$": "$"

            Reference: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sqs.html

            Source https://stackoverflow.com/questions/65616452

            QUESTION

            How to eliminate serverless framework error Template format error
            Asked 2020-Dec-10 at 13:37

            Testing, learning serverless framework. I'm trying to deploy simple/basic state machine with two simple lambda functions. Serverless definition as follows:

            ...

            ANSWER

            Answered 2020-Dec-10 at 13:37

            Looks like you are referencing something called CustomIamRole in your state machine creation but I cannot see it being created anywhere in the yaml file. Either create the role and use it in creation or remove the depends on part.

            Source https://stackoverflow.com/questions/65150973

            QUESTION

            How to eliminate TypeError: Cannot read property ‘startsWith’ of undefined error during sls deployment
            Asked 2020-Dec-02 at 18:06

            Currently learning serverless and state machines. When I'm trying to do deployment I'm getting error: TypeError: Cannot read property ‘startsWith’ of undefined.

            Below you can find serverless.yml definition which I'm trying to deploy. I can't spot the error I did.

            State machine I want is really basic and simple. I want to start it with decision, which will direct to correct lambda, depends on input (all of this manual, semi-manual for now). After lambda completion (no matter which one) will be end.

            ...

            ANSWER

            Answered 2020-Dec-02 at 18:06

            Line 77 in my serverless.yml has typo... should be Resource.

            Source https://stackoverflow.com/questions/65104056

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install serverless-step-functions

            Run npm install in your Serverless project. Add the plugin to your serverless.yml file.
            Specify your state machine definition using Amazon States Language in a definition statement in serverless.yml. You can use CloudFormation intrinsic functions such as Ref and Fn::GetAtt to reference Lambda functions, SNS topics, SQS queues and DynamoDB tables declared in the same serverless.yml. Since Ref returns different things (ARN, ID, resource name, etc.) depending on the type of CloudFormation resource, please refer to this page to see whether you need to use Ref or Fn::GetAtt. Alternatively, you can also provide the raw ARN, or SQS queue URL, or DynamoDB table name as a string. If you need to construct the ARN by hand, then we recommend to use the serverless-pseudo-parameters plugin together to make your life easier. In addition, if you want to reference a DynamoDB table managed by an external CloudFormation Stack, as long as that table name is exported as an output from that stack, it can be referenced by importing it using Fn::ImportValue. See the ddbtablestepfunc Step Function definition below for an example. In the example above, notice that we used Fn::GetAtt: [hello, Arn] to get the ARN for the hello function defined earlier. This means you don't have to know how the Serverless framework converts these local names to CloudFormation logical IDs (e.g. hello-world becomes HelloDashworldLambdaFunction). However, if you prefer to work with logical IDs, you can. You can also express the above Fn::GetAtt function as Fn::GetAtt: [HelloLambdaFunction, Arn]. If you're unfamiliar with the convention the Serverless framework uses, then the easiest thing to do is to first run sls package then look in the .serverless folder for the generated CloudFormation template. Here you can find the logical resource names for the functions you want to reference.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/serverless-operations/serverless-step-functions.git

          • CLI

            gh repo clone serverless-operations/serverless-step-functions

          • sshUrl

            git@github.com:serverless-operations/serverless-step-functions.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Serverless Libraries

            Try Top Libraries by serverless-operations

            serverless-apigateway-service-proxy

            by serverless-operationsJavaScript

            serverless-lambda-edge-pre-existing-cloudfront

            by serverless-operationsJavaScript

            serverless-dashboard-for-atom

            by serverless-operationsJavaScript

            serverless-delete-loggroups

            by serverless-operationsJavaScript