我们可以在 Azure DevOps 发布管道中 运行 terraform 导入吗
Can we run terraform import in Azure DevOps release pipeline
我已经手动创建了 Azure 虚拟网络和资源组。我将使用 Terraform 创建一个 VM 并通过 Azure DevOps.My Terraform 状态文件驻留在 Azure 存储帐户中进行部署。目前,它是空白的。我需要将现有的虚拟网络和资源组导入到状态文件中。我能够使用发布管道进行 Terraform 初始化、计划和应用,但我无法在发布管道中找到导入 Terraform 的任务。我可以使用我的 VSCode 进行导入,但我需要使用 Azure DevOps 进行此导入。
有人可以告诉我这是否可行吗?
提前致谢
此 Azure Pipelines 扩展声称支持 Terraform 导入:Terraform Tasks
Can we run terraform import in Azure DevOps release pipeline
恐怕目前在 Azure DevOps 发布管道中没有 运行 terraform 导入的开箱即用任务。
开发者社区有用户的声音:
It would be great if we are creating infrastructure via the Azure Portal to then be able to bring those resources into Terraform state management via a simple Terraform import task rather than attempting to call this in a PowerShell/Bash/Azure CLI script.
Currently the Terraform task supports plan, init, apply etc. But not import
您可以对此反馈进行投票并发表评论。
我已经手动创建了 Azure 虚拟网络和资源组。我将使用 Terraform 创建一个 VM 并通过 Azure DevOps.My Terraform 状态文件驻留在 Azure 存储帐户中进行部署。目前,它是空白的。我需要将现有的虚拟网络和资源组导入到状态文件中。我能够使用发布管道进行 Terraform 初始化、计划和应用,但我无法在发布管道中找到导入 Terraform 的任务。我可以使用我的 VSCode 进行导入,但我需要使用 Azure DevOps 进行此导入。
有人可以告诉我这是否可行吗? 提前致谢
此 Azure Pipelines 扩展声称支持 Terraform 导入:Terraform Tasks
Can we run terraform import in Azure DevOps release pipeline
恐怕目前在 Azure DevOps 发布管道中没有 运行 terraform 导入的开箱即用任务。
开发者社区有用户的声音:
It would be great if we are creating infrastructure via the Azure Portal to then be able to bring those resources into Terraform state management via a simple Terraform import task rather than attempting to call this in a PowerShell/Bash/Azure CLI script. Currently the Terraform task supports plan, init, apply etc. But not import
您可以对此反馈进行投票并发表评论。