Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual Step Function Deploy #562

Closed

Conversation

jappurohit041
Copy link
Contributor

Individual Step Function Deploy

This document outlines the process for adding the individual step function deploy feature to a plugin.

Background

Step functions are a powerful tool for building serverless workflows. They allow you to orchestrate multiple AWS services into a cohesive workflow. However, deploying step functions can be challenging. AWS provides a web-based interface for building and testing step functions, but deploying them requires the use of the AWS CLI or SDK. This can be complex and error-prone, especially when you have multiple step functions to deploy.

Problem

The current plugin for deploying step functions does not allow for individual step function deployment. This means that all step functions in a stack must be deployed at once, even if only one has changed. This can be time-consuming and can increase the risk of errors.

Solution

The solution is to add an individual step function deploy feature to the plugin. This feature will allow developers to deploy a single step function without having to deploy the entire stack. This will save time and reduce the risk of errors.

Implementation

To implement the individual step function deploy feature, the following steps should be taken:

  1. Add a new command to the plugin that allows for the deployment of a single step function. This command should take the name of the step function as a parameter.
  2. Modify the existing deploy command to allow for the deployment of a step functions at once. This commands take a name of step function as a parameter.
  3. Sample argument:
serverless deploy stepf --name *Step_Machine_Name*

Conclusion

By adding the individual step function deploy feature to the plugin, developers will have greater control over the deployment of their step functions. This will save time and reduce the risk of errors.

@jappurohit041 jappurohit041 changed the title Issue #561 Issue #562 Apr 14, 2023
@jappurohit041 jappurohit041 marked this pull request as draft April 14, 2023 11:24
@jappurohit041 jappurohit041 reopened this Apr 14, 2023
@jappurohit041 jappurohit041 marked this pull request as ready for review April 14, 2023 11:26
@lopburny
Copy link
Contributor

Hi @jappurohit041 thank you for your work for this PR. I had taken a look and I am wondering if it might cause issue with the existing stack since it seems it directly calls AWS SDK for updating the individual state machine. please let me know what you think.

@jappurohit041
Copy link
Contributor Author

We checked that did not faced any such issues in cloud formation updation...

tvhees added a commit to aligent/serverless-step-functions that referenced this pull request May 2, 2023
@lopburny
Copy link
Contributor

Hi @jappurohit041 Sorry for the silence! We've been discussing this topic internally for a while and concluded that it would be good to set up an issue and get people's feedback on updating process using SDK. I know that your team have been working on this for some time, so how about using it as a local plugin first, and then finalize the spec on the issue? I'm willing to speak up as well...!

@lopburny
Copy link
Contributor

If you re-post this PR in the issue, I will comment that I've reviewed the demo and summarize our team's concerns so that we can discuss further there 🙌

@jappurohit041 jappurohit041 changed the title Issue #562 Issue #570 May 15, 2023
@jappurohit041
Copy link
Contributor Author

Hi, @lopburny ,
No issues. We have actually created a test service and tested it as a local plugin.

Please find the link to the issue created: #570
Please let us know.
Thanks,

@KillDozerX2
Copy link

Hi @lopburny, any updates on this? Saw a few PRs being merged over the past week.

@jappurohit041 jappurohit041 changed the title Issue #570 Individual Step Function Deploy Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants