Giter Club home page Giter Club logo

test's Introduction

Example lambda project

This project was created to provide an example on how to setup a CI pipeline to build, test, deploy a simple lambda function in AWS. It was built on osx and has some dependencies to get started.

Getting started

  • Ensure you're an admin in the AWS account and install the dependencies following their respective install docs.
  • The taskfile.yml contains the execution bits. The list of targets can be found with task --list
task --list
task: Available tasks for this project:
* build: 	Run terraform init/apply cmds to "build" the project
and deploy a AWS apigateway and lambda function.

* ci: 			Run build, test, destroy tasks
* create_s3: 		Create a s3 bucket
* destroy: 		Teardown tf infrastructure
* package_lambda: 	Package up the python dependencies
* post_lambda: 		Post lambda function to s3
* test: 		Test terraform .tf files including integration tests.
The "{{.API_GATEWAY_URL}}" var is written by taskvars.tf
and made available by Taskvars.yml for a quick/dirty
integration test. Test tools:

tflint - linter for AWS provider-specific issues
terraform validate - syntax checker
curl - quick/dirty integration test utilizing dynamic variables

Lambda function

Since I have no production experience w/lambda I thought I'd put together a simple, single function project. It sets up a lambda function in python that queries Google for the terms "devops" and "cancer"

test's People

Contributors

2ffs2nns avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.