DEV Community

Cover image for Provisioning AWS Infrastructure using Terraform and Jenkins CI/CD

Provisioning AWS Infrastructure using Terraform and Jenkins CI/CD

Oluwasegun Adedigba on May 05, 2023

Introduction In this project, I set up infrastructure on the AWS cloud using Terraform. The infrastructure includes 4 web servers and 2 ...
Collapse
 
raiben23 profile image
Alex Cáceres

How is managed and where is stored the tfstate?

Collapse
 
cloudsege profile image
Oluwasegun Adedigba

I didn't commit it to the repository but it is saved locally as it is not advisable to make it publicly accessible due to the risks it poses.

Collapse
 
karlkori profile image
Serhiy Drahunov

So how does Jenkins know what was changed, if tfstate is only on your computer?

Thread Thread
 
cloudsege profile image
Oluwasegun Adedigba

I commit the change in the code to github and Jenkins picks that up

Collapse
 
jameslaneovermind profile image
jameslaneovermind

Great guide, thanks for sharing!

Collapse
 
cloudsege profile image
Oluwasegun Adedigba

Thank you very much!

Collapse
 
memoor72 profile image
memoor72

Great guide, it really helped especially with the Jenkins CICD automation

Thread Thread
 
cloudsege profile image
Oluwasegun Adedigba

Appreciate it❤️

Collapse
 
ezekiel200483 profile image
Olopade Ezekiel

💪

Collapse
 
raiben23 profile image
Alex Cáceres

Good article btw!!

Collapse
 
cloudsege profile image
Oluwasegun Adedigba

Thank you very much!