Hey, we deployed metaflow with aws batch using the...
# ask-metaflow
b
Hey, we deployed metaflow with aws batch using the terraform template version 0.3.0. I am able to run my flows locally but not on aws. I'm getting the below error. Any help would be appreciated
Copy code
Metaflow 2.8.0 executing HelloFlow for user:saaharjit
Validating your flow...
    The graph looks good!
Running pylint...
    Pylint is happy!
    Metaflow service error:
    Metadata request (/flows/HelloFlow/run) failed (code 500): "{\"err_msg\": \"__init__() got an unexpected keyword argument 'run_id'\"}"
👀 1
w
@bland-energy-98079 this config contains sensitive information including your metaflow endpoint and the api key that protects it, don't upload it here
b
😛 this is just on our sandbox environment. I am still only playing around with the metaflow tutorials. Thanks for raising the concern though
w
I had the same errors yesterday, I ended up nuking my cloudformation template and starting from scratch, double&triple checking the client configuration and now I don't have the issue anymore v_v sorry I can't help you more
b
SO I only updated the terraform template to 0.9.0 and ran apply but still no luck. I guess I should destroy the entire environment and rebuild it
w
if you use fargate, don't forget to set
"METAFLOW_ECS_FARGATE_EXECUTION_ROLE": "arn:foobar"
which you get not from the outputs, but from the resources that are deployed
Ah sorry, didn't realize you were on terraform, nvm
b
No worries, appreciate the help! 🙂
h
What your version of metadata service ?
b
2.8.0
h
Oh i think you sent me metaflow version. I mean the version of your metadata service
Oh i see, I think you are running Metadata service at v2.2.2
Is it possible for you to upgrade the terraform module to the latest tf module version (v0.9.2)? Your MD service is of an older version that is incompatible with the metaflow version 2.8.0.
b
Sure, let me try that out.
Woohhoo that worked!!
Thank you @little-apartment-49355
👌 1