In order to use the awsumepy library from scripts, when running this code:
awsumepy.awsume('profile', '-l')
It prints out the list of profile in a non-friendly parseable format in the stdout. It would be great that the function could return that information in JSON o dict, instead of printing the data in the stdout and returning None, or in order to capture the command output and parse the stdout.
In order to use the
awsumepylibrary from scripts, when running this code:It prints out the list of profile in a non-friendly parseable format in the stdout. It would be great that the function could return that information in JSON o dict, instead of printing the data in the stdout and returning
None, or in order to capture the command output and parse the stdout.