The steps to deploy your API are relatively straightforward.
production
and, click Deploy.
You have successfully created the API that will be calling your Lamda function to run Slurm commands on the head-node. Next, you will interact with your cluster using this new API.
To learn more about REST APIs in API Gateway see here