In the previous blog, https://samappsdba.blogspot.com/2026/04/azure-devops-terraform-oci-cicd-pipeline.html, we saw that how we can build a CI/CD pipeline using Azure DevOps and terraform to provision resources in Oracle Cloud Infrastructure. In continuation to that, in this blog, we will see that how we can destroy the resources after approval is provided.
We will add the destroy logic to the pipeline.
Click on right side +
Commit the changes in vscode which will trigger the pipeline.
Before the resources are deleted, I want to verify what it is going to delete.
So I have added an approval stage before the actual destroy happens
Review the DestroyPlanJob
After reviewing, I am satisfied and now I will have to
provide the approval
Click
on the Destroy Job
Click on view
Once you will click on permit
It will wait for approval
Click on review
This comples the complete end to end CI/CD pipeline from resource creation to destroy after approvals. Hope this will help someone. Till then, keep learning cloud
No comments:
Post a Comment