Menu
blog.headdesk.me
blog.headdesk.me

Tag: python

Dumping AWS Organization tree

Recently, I’m tasked to transfer a set of AWS accounts to another cloud service provider. I realize there is not a simple way to capture the organizational tree structure. Knowing the tree structure is quite important in understanding the net effects of SCP. A python script is developed to solve this problem.

Scheduled snapshot on AWS using Lambda

Check out my recent wiki page on how to schedule snapshot backups on AWS using Lambda. https://www.headdesk.me/Lambda Lambda is much more powerful then this. Using it together with S3 / SNS / SQS / etc allow deployment of business applications / workflows truly on cloud.

Working with JSON output from AWSCLI

The program looks short but the way Python handles JSON is not very elegant. JSON is supposed to be a serialized object, so it should be processed as an object. But here, it’s processed as an array. [python] #!/usr/bin/python import json import sys print "Usage: cat JSON | BasicParse.py | column -t" jsonInput = sys.stdin…

  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (6)
  • others (58)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup clearlinux cloud coffee docker DOCP ec2 EL8 epyc espresso featured gpg jenkins kernel lelit linux lvm meltdown memory MFA mikrotik php python rdp Redhat RHEL roasting rpm Ryzen site-to-site snapshot spectre tech terraform tuning ubuntu ubuntu upgrade vim vpn wordpress xdotool

©2023 blog.headdesk.me | Powered by SuperbThemes & WordPress