Skip to content

hjaffan/aws-git-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-git-lambda

Usage

This repository uses terraform to deploy the application It works on creating a lambda function and setting a trigger to it with an API Gateway

Deployment

  1. Install terraform cli v0.12.16
  2. Clone this directory
  3. export AWS_ACCESS_KEY_ID=
  4. export AWS_SECRET_ACCESS_KEY=
  5. run terraform init
  6. run terraform plan first to make sure all is good. (Please populate prompts"
  7. run terraform apply

How to trigger

The API Gateway that gets generated is called myapi

example payload

{
    "snowRequestId":"some-id",
    "environment":"stag",
    "cpuCount":"2",
    "memoryGB":"5"
}

curl -X POST https://api-gateway-way-enpoint/ops/update-terraform-repo --data '{"snowRequestId":"some-id","environment":"stag","cpuCount":"2","memoryGB":"5"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published