You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Support for getting profile data as a dict has been released in the latest pre-release (currently awsume==4.5.1a2).
exceptions.EarlyExit has been updated to allow returning data to the non-interactive caller, and the list profiles handler has been updated to send the profile data back (and also not print the profile information when called non-interactively). This means that you should be able to do this:
4.5.1 has been released that returns the profile dictionary to non-interacitve calls of awsume (via python import)
We're working on being able to output the profile listing as json from the CLI (awsume -l | jq ...), so we'll leave this issue open until we get that released
In order to use the
awsumepy
library 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.The text was updated successfully, but these errors were encountered: