The dev --> test --> prod workflow has been implemented with Matillion on different VMs. Can I execute a curl call in a bash script on one VM that fires a job in another?
The below call works from a local shell, but I would like to be able to execute via a bash script in Matillion ETL. Result should be job executing on another VM.
curl -X POST -u "username":"password" \
http://IP/rest/v1/group/name/$GROUPNAME/project/name/$PROJECTNAME/version/name/default/job/name/$JobName/run\?environmentName\$ENVNAME\
-H 'Content-Type:application/json'
If it works from local shell, have you tried executing this in a 'bash script' component?
This should work fine, only network/user credentials can restrict this action.
Thanks for the reply Michael. Has no effect in a bash script component, but no failure. I've raised the question with support and will update here with response.
As you said, probably network related.
Hello, one more clarification, when you mean 'local shell', do you mean that the bash is executed from the matillion instance terminal level, or from some completely other? To confirm network restriction, try the 'working bash command line' from the matillion instance itself.
Good suggestion Michael. I mean a shell on my machine, not on the vm.