This contains all logic necessary to deploy a lambda function in AWS attached to an API Gateway to trigger nomad jobs from the internet while keeping the nomad infrastructure private. This is particularly useful in the case of CI/CD with Github, Gitlab etc.
- Authentication
- One-click deployment
$ make deploy TF_VARS=../../example.tfvarsThis will run through the complete pipeline and
- compile the go binary
- package it up
- deploy it to AWS lambda with the appropriate configuration
The path for TF_VARS should be relative to the deploy/app folder.