Skip to content

sfn-dynamodb-cdk: Update aws-cdk-lib#3213

Open
kakakakakku wants to merge 3 commits into
aws-samples:mainfrom
kakakakakku:sfn-dynamodb-cdk
Open

sfn-dynamodb-cdk: Update aws-cdk-lib#3213
kakakakakku wants to merge 3 commits into
aws-samples:mainfrom
kakakakakku:sfn-dynamodb-cdk

Conversation

@kakakakakku

Copy link
Copy Markdown
Contributor

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

To keep this pattern maintainable, I updated the aws-cdk-lib.

Check

cdk deploy completed successfully and works good.

$ aws stepfunctions start-execution --name "test" --state-machine-arn "arn:aws:states:ap-northeast-1:000000000000:stateMachine:SfnToDDBWorkflowStateMachineF8331466-tFjmMlBVha2G" --input "{\"id\": \"12345\" }"
{
    "executionArn": "arn:aws:states:ap-northeast-1:000000000000:execution:SfnToDDBWorkflowStateMachineF8331466-tFjmMlBVha2G:test",
    "startDate": "2026-07-06T23:08:59.511000+09:00"
}

$ aws dynamodb get-item --table-name SfnDynamodbCdkStack-MyDDBTableName1F0038E0-O9EBX1QFKON3 --key "{\"id\": {\"S\": \"12345\"} }"
{
    "Item": {
        "description": {
            "S": "Hello, my id is 12345."
        },
        "id": {
            "S": "12345"
        }
    }
}
image

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

state_machine = sfn.StateMachine(
self, "SfnToDDBWorkflowStateMachine",
definition=definition,
definition_body=sfn.DefinitionBody.from_chainable(definition),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[WARNING] aws-cdk-lib.aws_stepfunctions.StateMachineProps#definition is deprecated.
  use definitionBody: DefinitionBody.fromChainable()
  This API will be removed in the next major release.

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