/testing-lambda-terraform

testing lambda & terraform

Primary LanguageHCL

testing lambda & terraform

I started to do the examples of this thread that I found in Twitter

๐Ÿงต Thread Link

Screen Shot 2022-11-03 at 23 54 16

Particularly in this repository I translated the following workshop to Terraform:

๐Ÿง‘๐Ÿปโ€๐Ÿ’ป Workshop Link

Screen Shot 2022-11-03 at 23 55 55

๐Ÿ’ก Learnings:

When we need to test things in AWS and we are in the free tier, It's usefull write them in Terraform and Ansible. We can create, test something and destroy to continue other day.

We also continue to learn about Infrastructure as Code, in this way it forces you to plan changes from a point of view of:

  • Coding well, if you love code you can write a good IasC
  • Maintenance, we have to have things that can be maintained
  • Iterate over the current solution creating branches and "deploying/applying"

Also, I found some differents betweend Terraform and the AWS UI. For example the Api Getway integration in the UI says: Integration Typr: Lambda Function but in terraform it's selected as: AWS_PROXY Try to fix this kind of things is who is really interesting when we bring the infrastructure to the code ๐Ÿ˜Ž.

๐Ÿ‘โ€๐Ÿ—จ Testing from AWS-Cloud9:

Testing lambda-function