Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support execution of Terraform plan #4468

Open
markwragg opened this issue Oct 21, 2024 · 1 comment
Open

Feature request: Support execution of Terraform plan #4468

markwragg opened this issue Oct 21, 2024 · 1 comment
Labels
customer-reported identify a customer issue needs-team-attention Issues out of a milestone question terraform

Comments

@markwragg
Copy link

When performing azd provision --preview with Terraform as the infrastructure provider (via an Azure DevOps pipeline), I can see that the Terraform plan file is saved, per this entry in the log:

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: /agent/_work/1/s/.azure/<env>/infra/main.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "/agent/_work/1/s/.azure/<env>/infra/main.tfplan"

It would be good if we could then use the plan when performing azd provision, as without being able to do that there's a risk some other change is introduced when you perform azd provision (i.e terraform apply) because someone else could have merged some changes to the Terraform code in the interim.

I would imagine it working like this:

azd provision --tfplan <path to plan>

This would then execute Terraform like this

terraform apply <path to plan>
@vhvb1989
Copy link
Member

This is a good feedback @markwragg , thank you.
There's no plans in the near future for Terraform, but we'll review with the team. Thank you for your patient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported identify a customer issue needs-team-attention Issues out of a milestone question terraform
Projects
None yet
Development

No branches or pull requests

2 participants