Closed rhollins closed 9 months ago
This is an odd one as that error message only existed in the previous version of the task.
See the diff where it was removed here: https://github.com/jason-johnson/azure-pipelines-tasks-terraform/commit/edbc47a3eede0609881bb1e5c04ec44fdcbbeeb8
Are you sure you have version 1.0.2?
In any case, even if you pull the correct version, there is another bug at the moment that we are resolving, should be fixed today or tomorrow.
Hi @rhollins. I am just following up on this. We have just release version 1.0.3 of the task, which fixes a bug unrelated to your reported issue, but relevant to Workload identity federation. Please can you try targeting that version and confirm all is good. Thanks
Turns out it was a mistake on my site by not using major version 1 but 0 when I referenced the task.
TerraformCLI@0 - was using Version : 0.7.12 TerraformCLI@1 - is using Version : 1.0.4
Now it works fine with a workload identity federation.
Thanks
Describe the bug
After converting Service Connection to the new one using workload identity federation with openid connect terraform cli tasks return error: [error] Terraform backend initialization for AzureRM only support service principal authorization
To Reproduce Steps to reproduce the behavior:
Expected behavior terraform init should work
Screenshots If applicable, add screenshots to help explain your problem.
Pipeline Logs
[error]Terraform backend initialization for AzureRM only support service principal authorization
Agent Configuration
Additional context Same step works from SC created using for example "Service principal (automatic)"