aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.51k stars 3.85k forks source link

step-functions: reference path in nested object doesn't work #3099

Closed tonyhoo closed 4 years ago

tonyhoo commented 5 years ago
NGL321 commented 5 years ago

Hi @tonyhoo!

Thank you for contributing! I just wanted to let you know, we are working hard to stabilize the CDK APIs and tuning them to meet our consistency guidelines. While we work on getting the APIs aligned with our guidelines, we are pausing work on most community feature-requests. We expect to get back to work on community feature-requests within a few weeks.

wqzoww commented 5 years ago

Hi @tonyhoo Thank you for your feedback. For information, we do not detect reference path given in a literal string today. To declare a reference path, users should use transformJobName: sfn.Data.stringAt('$.jobName'). Reference: https://github.com/awslabs/aws-cdk/blob/921dcc9f9f569331467a924ca4d849e501a3a557/packages/%40aws-cdk/aws-stepfunctions-tasks/test/sagemaker-transform-job.test.ts#L145

tonyhoo commented 5 years ago

Thanks @wqzoww , tried it out and works fine. Great! Is this gotcha captured anywhere in CDK documentation in case anyone else encounter the same problem?

nija-at commented 4 years ago

@tonyhoo - we have this documented here - https://docs.aws.amazon.com/cdk/api/latest/docs/aws-stepfunctions-readme.html#task-parameters-from-the-state-json