```secrets = json.loads(subprocess.getoutput("aws ...
# general
Copy code
secrets = json.loads(subprocess.getoutput("aws secretsmanager list-secrets"))
We have some methods that you can use to get information from AWS, but it looks like you can't list secrets. (this is what I'm referring to) I would use something like boto3 if you're making calls to AWS to get information like this