I need to master AWS API Gateway, how it functions, how it manages permissions and how it invokes other resources like AWS Lambda.

I’d love to be able to use Lambda to perform AWS API functions, like scaling ASG’s or granting and revoking permissions to resources. A knock-knock model for access to an EC2, which adds and then removes X hours later a CIDR to a security group, so that you can gain access to the resource for a short time.

See: Tutorial

Crucial Before we make this thing permanent, be sure to include an authorizer, otherwise the API Gateway endpoint is security-through-obscurity only.