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

StepFunction Service Integration with DynamoDb #5782

Closed
sacag opened this issue Jan 13, 2020 · 8 comments
Closed

StepFunction Service Integration with DynamoDb #5782

sacag opened this issue Jan 13, 2020 · 8 comments
Assignees
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions effort/medium Medium work item – several days of effort feature-request A feature should be added or improved.

Comments

@sacag
Copy link

sacag commented Jan 13, 2020

Description

Seems like the service integration between step function and dynamodb api is missing? Or is it lack of documentation? See the below code snippet which works for publishing to SNS from step-function task. Cannot find anything to do the same for dynamodb.

var snsTopicTask = new Task(this, "snsTopicTask", new TaskProps
            {
                InputPath = "$",
                Task = new PublishToTopic(snsTopic, new PublishToTopicProps
                {
                    IntegrationPattern = ServiceIntegrationPattern.FIRE_AND_FORGET,
                    Message = TaskInput.FromDataAt("$.lambdaResult"),
                    Subject = $"Test subject"
                })
            });

Reproduction Steps

Cannot find a similar way to interact with Dynamodb in the step function task as you can see above for SNS (PublishToTopic).

Error Log

Environment

  • CLI Version:
  • Framework Version: 1.20
  • OS: Windows
  • Language: C#

Other


This is 🐛 Bug Report

@sacag sacag added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 13, 2020
@SomayaB SomayaB self-assigned this Jan 13, 2020
@SomayaB SomayaB added language/dotnet Related to .NET bindings @aws-cdk/aws-stepfunctions Related to AWS StepFunctions labels Jan 13, 2020
@SomayaB
Copy link
Contributor

SomayaB commented Jan 13, 2020

Hi @sacag thanks for reporting this bug. In order to understand the issue better could you give us a full description of the issue you're encountering. You can just edit your initial post and add a description under the first section. Thanks!

@SomayaB SomayaB added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Jan 13, 2020
@sacag
Copy link
Author

sacag commented Jan 14, 2020

@SomayaB - Sorry, missed the bug description. Should be there now. Basically, there doesn't seem to be a way to access the dynamodb api from step functions in C# CDK. Although, the documentation says otherwise.

@sacag
Copy link
Author

sacag commented Jan 15, 2020

@SomayaB - Any update on this issue?

@SomayaB SomayaB removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 15, 2020
@SomayaB SomayaB assigned rix0rrr and unassigned SomayaB Jan 15, 2020
@SomayaB
Copy link
Contributor

SomayaB commented Jan 15, 2020

Thanks for adding a description @sacag! We're looking into this and will update this issue when there is movement.

@rix0rrr rix0rrr added feature-request A feature should be added or improved. and removed bug This issue is a bug. language/dotnet Related to .NET bindings labels Jan 16, 2020
@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 16, 2020

You are right that there are no pre-built constructs that expose this functionality right now. You can implement it yourself by implementing IStepFunctionsTask and returning the right fields.

@sacag
Copy link
Author

sacag commented Jan 16, 2020

@rix0rrr - As of now we are creating a lambda function which interacts with the dynamodb and passes on the result to next task. Is there a timeline when a pre-built construct for this will be available for .NET?

@rix0rrr rix0rrr assigned nija-at and unassigned rix0rrr Jan 23, 2020
@nija-at nija-at changed the title (.NET CDK) StepFunction Service Integration with DynamoDb StepFunction Service Integration with DynamoDb Feb 10, 2020
@nija-at nija-at added the effort/medium Medium work item – several days of effort label Feb 10, 2020
@ayush987goyal
Copy link
Contributor

Hi @nija-at , Is this issue a duplicate of #6468 ?

@nija-at
Copy link
Contributor

nija-at commented Apr 3, 2020

Looks like it. Thanks for fishing this out.

Resolving, @ayush987goyal has implemented this and will be available in the next CDK release.

@nija-at nija-at closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions effort/medium Medium work item – several days of effort feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

5 participants