Closed zxkane closed 3 years ago
We are using below workaround for reference,
from stepfunctions.steps.fields import Field
attrs=getattr(step, ‘fields’)
attrs[Field.Resource.value]=‘arn:aws-cn:states:::glue:startJobRun.sync’
setattr(step, ‘fields’, attrs)
Noted. Thanks for raising this!
Setting Field.Resource.value
for Steps
such as this one need to be updated.
How test the fixed version, same issue as previous experienced in cn-north-1. { "error": "States.Runtime", "cause": "An error occurred while executing the state 'Extract, Transform, Load' (entered at the event id #2). The resource belongs to a different partition from the running execution." }
@hlmiao https://github.com/aws/aws-step-functions-data-science-sdk-python/pull/131 hasn't been merged or released yet. If you want to test it out, you can pull the source from the PR's branch.
Got it.
All resources of task are hard code partition
aws
. The partition info should be fetched from boto3 client.