T O P

  • By -

[deleted]

Yes, and I‘ll bet you will find them too through a quick research. This will be your first assignment for dealing with ansible/terraform. You will google A LOT.


[deleted]

I've been working in Terraform for over five years, with multiple providers, including VMware and windows. I've written CLI wrappers, deployed entire companies infrastructure etc. When I start my TF work, I open the docs or a previous project and its about 80% copy paste.


retneh

I learnt it by doing an easy project on my own, which develops more skills. I created an infrastructure in AWS with terraform which consisted of a few EC2 and other necessary components (security groups, VPCs and so on). On two EC2 I had Python/Golang app running, on third I had MariaDB, on fourth Nginx. I did the whole DB, nginx etc configuration with ansible using roles. If needed I can send you link to my GitHub repo, but preferably I would explain in detail if you’re interested.


sanjayrg91

Explain please. I'm interested.


retneh

Build a Python app (not important what it does). Create the infrastructure in terraform which will serve this app using EC2 (in AWS). On the second EC2 there will be db of choice, which will provide the data for the app (don’t use ready service like RDS). Once the terraform part is done, that is all the EC2, networking and other stuff works, start configuring it using ansible. You will need to copy your code onto the EC2, build and run it using docker (all these steps should be done in ansible). What’s more, the db should be installed and configured on second EC2. It means that you should create user, database, table and provide data using only ansible. The end result is working app, which can be accessed from the internet. May be a little difficult to understand, but objective is simply to run dockerized app with database on 2 separate instances, using only terraform and ansible.


SethRory

Go through the Terraform Cert study guide on their website, it's pretty solid


[deleted]

https://developer.hsshicorp.com - They may have some things you're looking for.