Skip to content

sfn-glue-sync-cdk: Update aws-cdk-lib and replace deprecated Python shell 3.6 with 3.9#3214

Open
kakakakakku wants to merge 5 commits into
aws-samples:mainfrom
kakakakakku:sfn-glue-sync-cdk
Open

sfn-glue-sync-cdk: Update aws-cdk-lib and replace deprecated Python shell 3.6 with 3.9#3214
kakakakakku wants to merge 5 commits into
aws-samples:mainfrom
kakakakakku:sfn-glue-sync-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 --state-machine-arn "arn:aws:states:ap-northeast-1:000000000000:stateMachine:GlueJobStateMachineE759615B-at44lw4ZXLFV" --input "{\"message\": \"Hello from sfn glue step\"}"
{
    "executionArn": "arn:aws:states:ap-northeast-1:000000000000:execution:GlueJobStateMachineE759615B-at44lw4ZXLFV:132bb420-2b55-4fa4-9085-63a0e226e2d7",
    "startDate": "2026-07-06T23:55:20.379000+09:00"
}
image 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.

Comment thread sfn-glue-sync-cdk/app.py
state_machine = sfn.StateMachine(
self, "GlueJobStateMachine",
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.TaskStateBaseOptions#timeout is deprecated.
  use `taskTimeout`
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_stepfunctions.StateMachineProps#definition is deprecated.
  use definitionBody: DefinitionBody.fromChainable()
  This API will be removed in the next major release.

Comment thread sfn-glue-sync-cdk/app.py
command=glue.CfnJob.JobCommandProperty(
name='pythonshell',
python_version='3',
python_version='3.9',

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.

note: python_version='3' means Python 3.6, which is already deprecated. I updated it to '3.9', the latest version available for Python shell jobs. No newer Python version has been released for Python shell jobs since then.

See https://docs.aws.amazon.com/glue/latest/dg/add-job-python.html

The same change was made and approved in PR below.

@kakakakakku kakakakakku changed the title Sfn glue sync cdk sfn-glue-sync-cdk: Update aws-cdk-lib and replace deprecated Python shell 3.6 with 3.9 Jul 6, 2026
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