Your Name 3 år sedan
förälder
incheckning
3dbfaece67
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      hhh/aws-monitor/cl-test.py

+ 6 - 0
hhh/aws-monitor/cl-test.py

@@ -0,0 +1,6 @@
+import subprocess
+cmd='aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=RunInstances --max-results 20 --region us-east-1'
+cmds=cmd.split(' ')
+cl=subprocess.run(cmds, capture_output=True)
+print(cl)
+