I'm writing a function which needs to make some requests to EC2 to create and delete snapshots. However there is currently no feature in Lambda to directly making requests with EC2 resources. I'm attempting to use Class: AWS.TemporaryCredentials but there is a notice that writes:
Note: In order to create temporary credentials, you first need to have "master" credentials configured in AWS.Config.credentials. These master credentials are necessary to retrieve the temporary credentials, as well as refresh the credentials when they expire.
So I'm not sure how to store the credentials since this Lambda is only a function.