Windows issue finding aws cli even though it's installed
On Windows, I know not supported yet, when I try to run it in PowerShell everything works as expected up till it attempts to run the aws sts command. At this point, it fails with an error
Assuming AWS role Okta_AdministratorAccess...
Unable to get temporary credentials: AWS CLI cannot be found
I checked to ensure that the aws cli was on my path and it was and everything looks like it should work. Now comes the fun part. I pulled down the repo and thought I might be able to troubleshoot a bit and see what the Windows path was and why it can't find the cli. I pulled down the VSCode Python debugger and added a debug config.
VSCode Debug Config:
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "okta_aws",
"args": [
"profile_name",
"-d"
]
}
I ran debugging and everything works. This is probably something to do with PATH and I'm not sure how Python builds the path variable. Just for more info the aws cli is located at C:\Users\<username>\AppData\Local\Programs\Python\Python37-32\Scripts which is where the okta_aws tool is as well.
Software Version
0.5.4
Replication Case
On windows run okta_aws <profile>
Stacktrace
There weren't any errors in the stacktrace when running -d it just prints the command and exits with the above error
Possible Solution
Add an option to set the aws cli path maybe. I'm not sure this isn't just a Windows python issue that I haven't found an answer to yet.