This lab showing you how to deploy EC2 metadata instance and user-data instance.
EC2 metadata is data about an Amazon EC2 instance—such as instance ID, IP address, security groups, and IAM role credentials—used to configure or manage running instances. Accessed locally via the Instance Metadata Service (IMDS) at 169.254.169.254, it enables automation without hardcoding config files. Synonyms include IMDS (Instance Metadata Service) or instance identity data
Please refer the attachment where I add the command which you will be using under metadata instance and user-data instance.
Download the command and use the command during your lab.
github repository:
#github.com/zeessyed/AWS-Lab
Code: aws-metadata-userdata