Comments (8)
@Jeppeks1 I have marked this as an enhancement. Right now there is no timeline for when this might be picked up. You can also contribute this feature to the extension by raising a PR and we'd be happy to merge it and release.
from azure-pipelines-terraform.
Hello,
I made a pull request @arjgupta, @AmrutaKawade can you please review it.
Thanks!
from azure-pipelines-terraform.
Nearly a year later and this is still making my deployments twice as long as they should be, and triggering rate limiting on my providers.
from azure-pipelines-terraform.
Quick update, we've started testing a fix for this.
from azure-pipelines-terraform.
should work now. Still facing issues? reopen the issue if you do.
from azure-pipelines-terraform.
@mericstam Hello. Please re-open this issue. I have managed to reproduce using both TerraformTaskV1@0 (version resolved to 0.203.0) and TerraformTaskV2@2 (version resolved to 2.203.0).
Repro pipeline:
name: $(Rev:rr)
trigger:
- main
variables:
system.debug: true
tf_dir: $(Build.SourcesDirectory)/terraform
azure_connection: <redacted>
steps:
- task: TerraformTaskV2@2
displayName: init
inputs:
provider: azurerm
command: init
workingDirectory: $(tf_dir)
backendServiceArm: $(azure_connection)
backendAzureRmResourceGroupName: <redacted>
backendAzureRmStorageAccountName: <redacted>
backendAzureRmContainerName: terraform-state-files
backendAzureRmKey: omtest.tfstate
- task: TerraformTaskV2@2
displayName: plan
inputs:
provider: azurerm
command: plan
workingDirectory: $(tf_dir)
environmentServiceNameAzureRM: $(azure_connection)
Task log output (V2):
7.txt
You can see in the debug log that terraform plan command runs twice with different parameters:
1:
2022-04-29T04:19:31.0918453Z ##[debug]exec tool: /usr/local/bin/terraform
2022-04-29T04:19:31.0919238Z ##[debug]arguments:
2022-04-29T04:19:31.0920008Z ##[debug] plan
2022-04-29T04:19:31.0921103Z ##[debug] -detailed-exitcode
2022-04-29T04:19:31.0921798Z [command]/usr/local/bin/terraform plan -detailed-exitcode
2022-04-29T04:19:32.9006741Z
2022-04-29T04:19:32.9035932Z �[0m�[1m�[32mNo changes.�[0m�[1m Your infrastructure matches the configuration.�[0m
2022-04-29T04:19:32.9036513Z
2022-04-29T04:19:32.9037379Z �[0mTerraform has compared your real infrastructure against your configuration
2022-04-29T04:19:32.9038182Z and found no differences, so no changes are needed.
2:
2022-04-29T04:19:33.0580368Z ##[debug]exec tool: /usr/local/bin/terraform
2022-04-29T04:19:33.0581372Z ##[debug]arguments:
2022-04-29T04:19:33.0582132Z ##[debug] plan
2022-04-29T04:19:33.0583386Z ##[debug] -out=/home/vsts/work/1/s/plan-binary-d799e9be-e8f4-4f0a-bb9f-f607e169b205.tfplan
Initially I thought it's just a mistake in the logs so I decided to test how many times plan gets called by using side-effects.
I added a http data resource to terraform file to call an Azure Function and log the number of requests during pipeline by Application Insights.
data "http" "example" {
url = "https://<redacted>.azurewebsites.net/api/HttpTrigger1?code=<redacted>==&name=test2"
}
from azure-pipelines-terraform.
Hi,
Yes you are right @xenalite , I closed this by mistake. This will be fixed in V3 that is on it way. still facing some Issues in testing V3. Was initially planned for this week. but aiming for next now. I will keep this open util V3 is out
from azure-pipelines-terraform.
Hi, V3 release is out in version 0.1.17 on the Marketplace.
from azure-pipelines-terraform.
Related Issues (20)
- How to enable task.debug? HOT 2
- link to Marketplace listing HOT 1
- TerraformInstaller@1 fails with ambiguous identifier HOT 4
- state command not working HOT 9
- Terraform init failure on Azure Devops Pipeline HOT 11
- Azure DevOps pipeline Terraform init fails when using service connection that is linked to an Azure AD app registration that is using workload identity federation instead of client secret HOT 3
- Error installing extension from marketplace HOT 2
- Terraform apply fails when deploying tfplan from artifactory in release pipeline HOT 2
- Terraform output failing, but not recorded as failed HOT 4
- Terraform: Unable to get latest version: using 1.1.6 HOT 3
- Azure SQL database management using Workload Identity Federation service connection in Azure DevOps HOT 4
- Allow Option to Override Subscription ID
- WIF token usage HOT 2
- Using WIF for Terraform State broken in 0.1.25 HOT 8
- Upgrade Node10 executor to Node16 HOT 2
- Allow for More Nuanced Terraform Versioning HOT 1
- Build agents still have mismatched Terraform versions HOT 4
- Support for passing in a backend config file in init command
- Move -detailed-exitcode flag or add option to disable it from automatically being added to the end of a plan task
- `output` tasks still logs to console despite `output: 'file'` option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-terraform.