Skip to content

Instantly share code, notes, and snippets.

@moali87
Created September 14, 2015 19:36
Show Gist options
  • Save moali87/9667f7c3133271914d60 to your computer and use it in GitHub Desktop.
Save moali87/9667f7c3133271914d60 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from boto3 import Session
from boto3 import client
import urllib
instance_id = urllib.urlopen('http://169.254.169.254/latest/meta-data/instance-id/').read()
def Register_To_ELB(*args):
print('my arg {0}'.format(args)
if __name__ == '__main__':
Register_To_ELB(instance_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment