Open endian675 opened 1 year ago
This appears to be by-design in packages/@aws-cdk/aws-stepfunctions-tasks/lib/batch/submit-job.ts configurePolicyStatements()
but I think it should be changed to be consistent with the treatment of jobDefinitionArn
You're right, thanks for reporting this issue. I can confirm the invalid template gets generated when attempting to use JsonPath
. As you've mentioned, we are handling this by just directly passing in what was passed in to props
How did you achieve the behavior you describe in CurrentBehavior
where a wildcard is supplied?
@peterwoodworth I put the wrong item into CurrentBehaviour, let me correct it. CurrentBehaviour is to emit the incorrect $.jobQueueArn
.
Thanks for clarifying! Makes sense, just making sure I wasn't missing something 🙂
Describe the bug
BatchSubmitJob()
generates an invalid RoleDefaultPolicy by emitting the literal value$.jobQueueArn
instead of wildcard. This behaviour is inconsistent withjobDefinitionArn
, which emits a wildcard ~when the value of the variable is not available~ always ~(i.e., it will be created later, outside of CDK/CFN)~.Expected Behavior
Current Behavior
Reproduction Steps
Possible Solution
jobDefinitionArn
is handled correctly,jobQueueArn
should be handled the same wayAdditional Information/Context
No response
CDK CLI Version
2.64.0 (build fb67c77)
Framework Version
No response
Node.js Version
v16.18.1
OS
Amazon Linux 2
Language
Python
Language Version
Python (3.7.16)
Other information
No response