Skip to content

Instantly share code, notes, and snippets.

View dispera's full-sized avatar

Diego Spera dispera

  • @codegods.io
  • TBA
View GitHub Profile
@dispera
dispera / ecs-agents-monitor.py
Last active July 2, 2019 13:37
Script to check ECS agents down on the specified regions
#!/usr/bin/python3
#
# This will output the EC2 instance id of the ECS cluster instances
# which have the ECS agent down, on the region this saltmaster runs on.
#
# Requires: sudo apt install python3-pip; pip3 install boto3
#
# You can use this with https://github.com/mheffner/awsam
# for easy AWS vars management, eg:
# aem use pingdom-prod
@dispera
dispera / ecs-agents-updater.py
Last active July 2, 2019 13:37
Script to update ALL the ECS agents on the specified regions
#!/usr/bin/python3
#
# This will update ALL the ECS agents on the specified regions
# Requires: pip3 install boto3
#
# You can use this with https://github.com/mheffner/awsam
# for easy AWS vars management, eg:
# aem use pingdom-prod
# aenv python3 ecs-agents-updater.py

Keybase proof

I hereby claim:

  • I am dispera on github.
  • I am diegospera (https://keybase.io/diegospera) on keybase.
  • I have a public key ASDdILUNAYISFjcw3pvcsz-ypEjNI0L6gIJwL5ZQfMssTgo

To claim this, I am signing this object: