Skip to content

AWS Lambda with Node.js for DevOps Technical Evaluation

Notifications You must be signed in to change notification settings

channyein87/tm-aws-lambda-eva

Repository files navigation

AWS Lambda Function

Simple lambda function with API gateway.

Build

  1. Create a new terraform.tfvars file and provide variable values according to variables.tf file.

    # sample terraform.tfvars file
    aws_region     = "ap-southeast-2"
    env            = "prod"
    environment    = "production"
    aws_access_key = "XXXX"
    aws_secret_key = "xxxx"
    
  2. Run terraform cmd to build the lambda function aand api gateway.

    terraform init
    terraform plan
    terraform apply
  3. Example curl cmd.

    curl -v -X GET https://<api-gateway-url>/prod/hello

Destroy

terraform destroy

About

AWS Lambda with Node.js for DevOps Technical Evaluation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published