s3vaultlib.metadata package¶
Submodules¶
s3vaultlib.metadata.base module¶
s3vaultlib.metadata.ec2 module¶
-
class
s3vaultlib.metadata.ec2.EC2Metadata(endpoint='169.254.169.254', version='latest', session_info=None)[source]¶ Bases:
s3vaultlib.metadata.base.MetadataBaseObject that retrieve metadata from within an EC2 instance
-
account_id¶ Return the account_id associated to the instance
Returns: account_id Return type: basestring
-
instance_id¶ Return the instance_id associated to the instance
Returns: instance_id Return type: basestring
-
region¶ Return the region associated to the instance
Returns: region Return type: basestring
-
role¶ Return the role associated to the instance
-