I started to do the examples of this thread that I found in Twitter
๐งต Thread Link
Particularly in this repository I translated the following workshop to Terraform:
๐ง๐ปโ๐ป Workshop Link
๐ก 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: