-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(stepfunctions): add EvaluateExpression
task
#4602
Conversation
Use the `EvalTask` to perform simple operations referencing state paths. The `expression` referenced in the task will be evaluated in a Lambda function (`eval()`). This allows to write less Lambda runtime code for simple operations.
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
See README - Eval example for usage example. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
This is another super sexy submission @jogold! I've been putting off reviewing it a little because it honestly scares me a little, what with using Undoubtedly very useful, but I have serious reservations about shipping this in the core library. I wonder if it's not better off in a 3rd party construct library. |
@rix0rrr I was expecting this kind of reaction to the usage of One of the security issues with Let's look at the |
It is, and my concern is not about security. More about whether or not we want to take on the maintenance burden of when people are inevitably going to misuse/abuse the feature. Nevertheless, because it is a little unorthodox, we're also going to have to have a security review with the appropriate people internally. I don't predict that being a blocker though. Given that the IAM policy of the Lambda has barely any permissions, the worst you would be able to do is rack up Lambda charges in your own account. |
EvaluateExpression
task
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Use the
EvaluateExpression
to perform simple operations referencing state paths. Theexpression
referenced in the task will be evaluated in a Lambda function(
eval()
). This allows you to not have to write Lambda code for simple operations.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license