Retrieving EC2 instance profile credentials with IMDSv2

Quick example of fetching EC2 instance profile credentials using IMDSv2.