'Can you pass instance metadata to a web application

I am new to aws, so this is going to be worded badly. I am wondering if I can get the metadata of the instance and pass it to my web application. I am using a ec2 and a s3 bucket to hold the web application folder.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source