title: Send username to aws Lambda function triggered by aws Cognito user confirm
body: <p>I am trying to write a Lambda function that makes a folder in an s3 bucket named after a newly confirmed cognito user. This will allow me to keep that user's access limited to their folder. I have created a Lambda function that can create a folder in s3 using a username passed through Lambda's test event object. I know cognito has a "confirmation event" trigger, and I have selected my function to run on that trigger, but I do not know how to retrieve the username from that event. Screenshot below is of my Lambda code.<br>
  <a href="https://i.stack.imgur.com/BqP2L.png" rel="noreferrer">my lambda function</a>.</p>
  
  <p>Let me know if I need to provide more information. I've seen stuff about possibly using amazon's API gateway but in the hour and a half or so that I've messed with API gateway I haven't come any closer to figuring out how to solve this problem. </p>
  
  <p>Thanks!
  ~Ben</p>