Testing terraform with AWS (Lambda and DynamoDB) and TypeScript.
Basic lambda function that store the IP address into DynamoDB.
The main purpose is testing Terraform.
- node
- npm
- terraform
To transpile .ts code into .js use:
npm run build
node_modules
folder is copied into dist in order to zip dist
folder and push it into S3
(needed by Lambda
).
To initialize terraform use:
terraform init
and deploy with:
terraform apply