Hey everyone, I’m getting the following error when...
# ask-metaflow
c
Hey everyone, I’m getting the following error when running a Flow as a step function on AWS:
Copy code
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the PutItem operation: User: [USER_ROLE_ARN] is not authorized to perform: dynamodb:PutItem on resource: [METAFLOW_SFN_DYNAMO_DB_TABLE_ARN] because no identity-based policy allows the dynamodb:PutItem action
Everything works fine when I trigger the executions in AWS locally on my CLI through
python my_flow.py run --with batch […]
but the step function execution fails when it hits a
foreach
step. I’m using Metaflow 2.7.11. The AWS stack was created using this version of the Terraform template with some slight modifications (but none should have affected the DynamoDB part). I’m wondering whether it’s an issue of Metaflow version not agreeing with the terraform template but before I go ahead and recreate the AWS stack I would like to verify whether this is the problem Any help much appreciated!
1
v
that behavior hasn’t changed recently either so the version shouldn’t make a difference
could you try again with our new terraforms following the instructions here - I noticed you are using older terraforms
c
Hey Ville. thanks for your reply. I will do that in the next few days and let you know how it goes 👍
👍 1