How to deploy infrastructure changes
The process of deploying infrastructure changes into the production environment requires review and approvals by the infrastructure management team. The steps for making changes and deploying them are:
Pull the repository containing the code for the infrastructure. Make sure the latest changes are pulled.
Create a new git branch with the name of the task related to infra changes.
Make the necessary changes to the infrastructure code. Make sure changes are complete and without errors.
Push the branch and create a merge(pull) request to the main branch. Add necessary description and context to the merge request.
In the appropriate slack channel ask for review and approval for the merge request.
After going through the review process and getting the approval merge to the main branch. This will trigger a terraform plan to be executed on terraform cloud.
Review the plan and make sure it aligns with the changes to the infrastructure that were in the merge request. If there are additional changes find out the root cause and take needed actions.
Apply the plan to make the changes
Make sure the changes are applied to infrastructure as expected