I'm trying to create temporary(?) credentials using an IAM role. From what I learned in the package's GitHub issues, they implemented the feature for Rust but I just can't figure where it is.
The equivalent code in NodeJS is:
import * as aws from 'aws-sdk'
ecsCredentials = new aws.ECSCredentials()
await ecsCredentials.getPromise()
aws.config.credentials = ecsCredentials
I ended up doing: