Run glue job from python recipe in dataiku

goku
Level 2
Run glue job from python recipe in dataiku

How to run glue job from python recipe in dataiku either by uising boto3 or  other method. When using boto3 getting client error when calling StartJobRun  operation: the security token included in the request is invalid.

0 Kudos
1 Reply
AlexT
Dataiker

HI @goku 
The error you shared suggests your credentials require MFA and may have not session token

You need to set the session token, access, and secret key. 

 https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html#module-boto3.ses...

Another option is to generate access key and secret that doesn't require MFA.

Thanks

0 Kudos