Giter VIP home page Giter VIP logo

lambda-in-action's Introduction

λ in Action Build

by Samuel Bucheli, Stefan Friedli and Lukas Akermann

Goal: Implement an AWS Lambda application architecture on code from Garfolo's Book «Practical Microservices».

Overview

Resources

FAQ

How can I set up my AWS profile?

Create an access key on AWS IAM, then add the following to ~/.aws/config

[profile camp-lambda-in-action]
region = us-east-1
output = json

and the following to ~/.aws/credentials

[camp-lambda-in-action]
aws_access_key_id=<id>
aws_secret_access_key=<secret>

(replacing the placeholders with the actual access key values, of course).

What Terraform version should I use?

We have used Terraform 1.3.3 while we have experimented with this code. So, this will most likely be the most suitable version to use.

Hint: You can use tfenv https://github.com/tfutils/tfenv to manage Terraform versions. Install with

brew install tfenv

on Mac and then activate the Terraform version using

tfenv use

(this will use the .terraform-version file).

What Node version should I use?

We have used Node v16.18.0 while we have experimented with this code. So, this will most likely be the most suitable version to use.

Hint: You can use nvm https://github.com/nvm-sh/nvm to manage Node installations. Install with

brew install nvm 

on Mac and then activate the Node version using

nvm use

To use nvm, you may have to configure some additional steps, see https://formulae.brew.sh/formula/nvm

How can I test whether my CDK for Terraform setup is correct?

First, ensure you have all dependencies installed by running

npm install

in the infrastructure folder.

Then, run

npx cdktf get

It should show something like this

Generated typescript constructs in the output directory: .gen

How can I deploy changes

Generates a diff by running Terraform plan:

npx cdktf diff

Deploy:

npx cdktf deploy

I get the following error. What should I do? Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

Update dependency:

"pg": "^8.0.3"

lambda-in-action's People

Contributors

samuelbucheliz avatar sfriedlizuehlke avatar lakermann avatar

Watchers

 avatar  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.