Has anybody tried this on Google Cloud Shell or in AWS CloudShell?
I use the following commands to start the project:
pip3 install gives some errors on AWS Cloudshell, but works fine on GCP.
However, both CloudShells leave me with a non-working application:
I get this error:
Traceback (most recent call last): File "inventory.py", line 61, in <module> ownerId = utils.get_ownerID(profile_name) File "/home/jason_dinkel/729121273778/aws-inventory/res/utils.py", line 173, in get_ownerID identity = sts.get_caller_identity() File "/home/jason_dinkel/.local/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/jason_dinkel/.local/lib/python3.7/site-packages/botocore/client.py", line 676, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (ExpiredToken) when calling the GetCallerIdentity operation: The security token included in the request is expired
Now, the token comes from the SSO console for GCP and for AWS, the credentials are built-into the cloudshell, so neither should be the problem.
Also, the AWS Cloudshell shouldn't prompt for a [default] profile.
[cloudshell-user@ip-10-0-28-32 aws-inventory]$ python3 inventory.py
Profile name [default] not found, please check.
If anybody wants to have a look, I'd appreciate it. If I find a solution, I will post the steps.
Thanks.