Ask Your Question
2

How to verify plan alterations while using Terraform in a pipeline?

asked 2021-05-12 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-27 22:00:00 +0000

qstack gravatar image

There are a few steps to follow when verifying plan alterations while using Terraform in a pipeline:

  1. Create a new branch: Before making any plan alterations, create a new branch in your Git repository where you will make and test the changes.

  2. Make plan alterations: Make the necessary changes to your Terraform code in the branch.

  3. Test the new plan: Run "terraform plan" to generate a new plan.

  4. Compare the new plan to the previous plan: Compare the new plan to the previous plan generated for the same infrastructure. Review the changes in the plan and verify that they are expected.

  5. Run the pipeline: Once you have verified the new plan, run the pipeline on the new branch to deploy the changes.

  6. Verify the changes: Verify that the changes have been applied as expected and that the infrastructure is functioning correctly.

  7. Merge the branch: Once the changes have been verified and approved, merge the branch to the main branch.

These steps will help ensure that any plan alterations made to your infrastructure using Terraform are thoroughly tested and verified before they are deployed in a pipeline.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-12 11:00:00 +0000

Seen: 8 times

Last updated: Dec 27 '21