A company specializing in luxury furniture sales, needed to provision an infrastructure (Networking + Compute) in the OCI, to host its website called Niture. As a prerequisite for this project, I had to use Infrastructure as Code (IaC).
The main IaC tools I used for this project were GitHub, Terraform Cloud and Terraform IaC.
The main steps are:
- Create a new IAM administrator user for Terraform.
- Create a new repository in GitHub.
- Create terraform main.tf file to create the different resources needed for this project.
- Commit the terraform changes into GitHub.
- Create a new organization and workspace in Terraform Cloud
- Configure the terraform variables and plan and validate a run.
- Once all resources were created, test the application.
- Update the main.tf file — add a second webserver, commit the changes and validate that the new server was created.
- Update again the main.tf file — remove the second server and validate that it was deleted.
- Remove all the resources from the main.tf file and validate that all the resources were deleted.