Created
September 14, 2015 19:36
-
-
Save moali87/9667f7c3133271914d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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