Drone ECR role authentication

I’m trying to use the Drone ECR plugin but I’m having some problems trying to authenticate. Basically I’m restricted to using a role assumption to authenticate. I do have a plugin that will allow me to pass in the role and export a file with credentials I could then source in a next step in the pipeline. But I can’t seem to figure out how use this in conjuction with the ECR plugin. Did anyone ever encounter something similar?