Skip to content

About

We need to write code that will query the meta data of an instance within AWS and provide a json formatted output. The choice of language and implementation is up to you. Bonus Points The code allows for a particular data key to be retrieved individually

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

kpmg-challange-two

We need to write code that will query the meta data of an instance within AWS and provide a json formatted output.

Usage

  • Login to AWS cli and take note of profile name

  • usage: instance_metadata.py [-h] [-id INSTANCE_ID] [-key METADATA_KEY] [--profile PROFILE]

  • optional arguments:
    -h, --help show this help message and exit


-id INSTANCE_ID, --instance_id INSTANCE_ID Instance id of machine
-key METADATA_KEY, --metadata_key METADATA_KEY Enter Metadata key that you want to query ,

					Refer These are the resource's available       
                    attributes: Attribute='instanceType'|'kernel'  
                    |'ramdisk'|'userData'|'disableApiTermination'  
                    |'instanceInitiatedShutdownBehavior'|'rootDev  
                    iceName'|'blockDeviceMapping'|'productCodes'|  
                    'sourceDestCheck'|'groupSet'|'ebsOptimized'|'  
                    sriovNetSupport'|'enaSupport'|'enclaveOptions  
                    '|'disableApiStop'


--profile PROFILE AWS Profile name

About

We need to write code that will query the meta data of an instance within AWS and provide a json formatted output. The choice of language and implementation is up to you. Bonus Points The code allows for a particular data key to be retrieved individually

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages