Production Terraform Version Upgrade

Hi All,
Is anyone having any insights about how to write a bash script to automate the Terraform upgrade process to newer version and update the version in Azure Devops multiple repositories in production without code change.

What part are you stuck on?

Hey @al14006 Thank you for your resonance, I have completed the manually upgrade process and now trying to automate for multiple repos using bash and need to start I am not getting the roadmap how to start the version upgrade so if have any suggestion in then please do share

If you are using Azure DevOps why are you not using the Terraform Task:

- task: TerraformInstaller@0
  displayName: "Install Terraform"

Hi al1
Thank you for your suggestions, and now I am working with list of repositories to upgrade through this TF_VERSIONS=(“0.12.31” “0.13.5” “0.14.6” “0.14.11” “0.15.3” “0.15.5” “1.2.2” “1.5.7”) versions, and I am trying to automate this Terraform upgrade process so if you have nay insights on same then please do share, and I am using Bash or Python for automation