Okta-AWS Need to Change Role for Codebase to Compile

I’m getting an AWS key error during codebase compilation which uses the okta-aws aws role in order to fetch some external files.

I went through the process of setting up okta-aws on the command line. I had to run a command
okta-aws default sts get-caller-identity that allowed us to choose which AWS role to operate in. There were two options, I ended up choosing the option which did not have access to the files in question.

I’m trying to change to the other role which does using 'sts assume-role` and all its variants. I got an access denied on the assume role method from this second role. Any other way to go about changing this role.