curl http://169.254.169.254/latest/meta-data/iam/security-credentials/MyAppRole
The specific path /latest/meta-data/iam/security-credentials/ is used to retrieve temporary security credentials for the IAM role attached to an EC2 instance. These credentials are short-lived and can be used by applications running on the instance to access AWS resources securely without needing to hard-code or store long-term AWS access keys. curl http://169