WhatIs.com 09月29日
Terraform推出两项新功能
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

HashiCorp宣布为Terraform推出两项重要新功能:Terraform actions和Terraform search。Terraform actions作为HCL中的一级代码块,支持在基础设施管理过程中执行'Day 2'操作,解决此前无法处理资源变更但无需更新定义的问题。Terraform search则通过搜索环境资源并生成Terraform代码,帮助大组织统一基础设施即代码标准,提升管理效率。两项功能旨在扩展Terraform在自动化和资源控制中的作用,并促进与Ansible等工具的深度集成。

🔧Terraform actions是HCL中的一级代码块,允许在基础设施生命周期中执行无需变更定义的操作,如运行脚本、升级固件或清理日志,符合Terraform核心的不可变原则但扩展了其功能范围。

🔍Terraform search通过扫描环境资源并自动生成Terraform代码,解决了跨工具标准化基础设施管理的难题,特别适用于推动大组织从其他工具迁移至Terraform的场景。

🤝Terraform actions与Ansible等工具的集成,通过第三方工具(如IBM Red Hat的Event-Driven Ansible)实现深度协同,构建更全面的混合云自动化平台,并支持平台特定操作的开发。

⚡两项功能均已在HashiConf 2025期间进入公开测试阶段,其中Terraform actions作为'超级提供者',未来将支持与Red Hat Developer Hub、ServiceNow等第三方工具的集成。

📈通过这两项功能,Terraform可更有效地实现FinOps策略与基础设施部署流程的联动,例如IBM Cloudability Governance与Terraform run task的集成案例展示了其商业价值。

<p>SAN FRANCISCO — HashiCorp Terraform users were introduced to two significant new features that will broaden its role in infrastructure automation and bring unmanaged resources under centralized control.</p><div class="ad-wrapper ad-embedded"> <div id="halfpage" class="ad ad-hp"> <script>GPT.display('halfpage')</script> </div> <div id="mu-1" class="ad ad-mu"> <script>GPT.display('mu-1')</script> </div> </div> <p>Terraform actions, launched in public beta this week during HashiConf, is implemented as a new first-class block in HashiCorp configuration language (HCL). Where other top-level code blocks have focused on the initial deployment and final disposal of <a href="https://www.techtarget.com/searchitoperations/definition/immutable-infrastructure"&gt;immutable infrastructure</a> resources, Terraform actions codifies steps that occur between the two ends of the infrastructure management process.</p> <p>"Terraform was born as a cloud-native tool with very strongly held views around immutability," said Armon Dadgar, co-founder and CTO at HashiCorp, during a keynote presentation on Thursday. &nbsp;"An area that was always trickier was, 'What happens if I need to touch a resource, but there's no change to the Terraform definition? That was always an area where people got creative."</p> <p>One of the previous workarounds was using Terraform provisioners, which execute scripts and run commands on machines after Terraform creates or destroys resources. But using provisioners was <a target="_blank" href="https://developer.hashicorp.com/terraform/language/provisioners" rel="noopener">often discouraged</a>, according to one HashiCorp ambassador.</p> <blockquote class="main-article-pullquote"> <div class="main-article-pullquote-inner"> <figure> Terraform finally has something that still follows core principles but extends beyond day one. That's huge. </figure> <figcaption> <strong>Ned Bellavance</strong>Technical educator, Ned in the Cloud </figcaption> <i class="icon" data-icon="z"></i> </div></blockquote> <p>"HashiCorp has said for years, don't use provisioners because they break the overall Terraform workflow," said Ned Bellavance, technical educator at Ned in the Cloud LLC, in an interview with Informa TechTarget. "Terraform finally has something that still follows core principles but extends beyond day one. That's huge."</p> <p>The lack of support for 'Day 2' actions to support ongoing operations and configuration management "has been Terraform's biggest shortcoming," said Erik Grina Raassum, senior engineer at Sopra Steria, an IT consulting and digital services company headquartered in Paris.</p> <p>However, another Terraform Community Edition user was concerned about potential disruption from such a major change to HCL's syntax.</p> <p>"Just starting from the fact that it's a first-level block in the syntax itself, linters [and other workflows] might have to change," said Pato Arvizu, staff site reliability engineer at Asapp, Inc., an AI-native contact center software company in New York. "It seems like a net positive, but we'll see what else has to adjust."</p> <p>Terraform actions could help link FinOps policies directly into the infrastructure provisioning workflow, for example, Arvizu said. IBM and HashiCorp will offer a packaged version of such a workflow under a new integration between IBM Cloudability Governance and Terraform run tasks rolled out this week.</p> <section class="section main-article-chapter" data-menu-title="Terraform actions builds new bridge to Ansible"> <h2 class="section-title"><i class="icon" data-icon="1"></i>Terraform actions builds new bridge to Ansible</h2> <p>Dadgar called Terraform actions "super-provisioners" that invoke actions throughout the lifecycle of a resource through third-party tools such as IBM Red Hat's Event-Driven Ansible tool. Terraform actions answers previous questions about how the <a href="https://www.techtarget.com/searchitoperations/news/366625170/HashiCorp-Terraform-leads-IBM-Red-Hat-integration-roadmap"&gt;declarative Terraform</a> might more deeply integrate with the imperative Ansible now that both HashiCorp and Red Hat are part of IBM. Another point of overlap between the two tools, an official Ansible Terraform provider, also reached general availability this week.</p> <p>"This is a totally new workflow that starts to enable Terraform to … deeply integrate with runbook systems like Ansible, [which can] be used for all sorts of things," Dadgar said. "Think about running a script on existing infrastructure. Think about upgrading firmware. Think about clearing log files. All of those things don't involve changing the underlying resources, so you had to manually set up imperative actions. There's a whole universe of things that we want to be able to support with this."</p> <p>HashiCorp and Red Hat touted ties between Terraform and Ansible Automation Platform from the keynote stage, but any third-party Terraform provider will be able to expose platform-specific actions using the Terraform SDK, Dadgar said. Long-term, Terraform and Ansible will become part of a broader hybrid cloud automation platform that also ties in third-party tools such as Red Hat Developer Hub, ServiceNow and Jira.&nbsp;&nbsp;</p> <p>"They're part of a bigger platform experience that we're trying to deliver," Dadgar said. "Which really says, 'How do we cater to these different personas and the different experiences they want, but underpin everything with infrastructure as code to deliver [resources] across the hybrid estate?"</p> <figure class="main-article-image full-col" data-img-fullsize="https://www.techtarget.com/rms/onlineimages/dadgar_mourad_hashi_conf2025-f.jpg"&gt; <img data-src="https://www.techtarget.com/rms/onlineimages/dadgar_mourad_hashi_conf2025-f_mobile.jpg" class="lazy" data-srcset="https://www.techtarget.com/rms/onlineimages/dadgar_mourad_hashi_conf2025-f_mobile.jpg 960w,https://www.techtarget.com/rms/onlineimages/dadgar_mourad_hashi_conf2025-f.jpg 1280w" alt="Armon Dadgar Hicham Mourad HashiConf 2025" data-credit="Beth Pariseau" height="420" width="560"> <figcaption> <i class="icon pictures" data-icon="z"></i>HashiCorp co-founder and CTO Armon Dadgar, left, presents at HashiConf 2025 with Hicham Mourad, product and technical marketing manager at Red Hat. </figcaption> <div class="main-article-image-enlarge"> <i class="icon" data-icon="w"></i> </div> </figure></section> <section class="section main-article-chapter" data-menu-title="HashiCorp Terraform search a coveted feature"> <h2 class="section-title"><i class="icon" data-icon="1"></i>HashiCorp Terraform search a coveted feature</h2> <p>Another feature launched in beta this week, Terraform search, represents a long-awaited update for Terraform users, Dadgar said.</p> <p>"It might have been like the second ticket that was created on GitHub [for Terraform]" 10 years ago, he said. "The idea was basically, 'Can you just point me an environment, search the environment, find the things that are there, and then write the Terraform code for me?'”</p> <p>Terraform search will do just that, addressing one of the major challenges to encouraging a focus on one centralized infrastructure-as-code approach within large organizations, Bellavance said.</p> <p>"If you have a team that built out the infrastructure using some other tool and you want them to standardize on Terraform, you can now say, 'All right, just show me what you used, and now I'll use Terraform search to find all that stuff and get it under our standards and the modules that we want to use,'" he said.</p> <p><i>Beth Pariseau, a senior news writer for Informa TechTarget, is an award-winning veteran of IT journalism covering DevOps. Have a tip? </i><a href="mailto:beth.pariseau@informatechtarget.com?subject=News%20tip"><i>Email her</i></a><i> or reach out </i><a target="_blank" href="https://x.com/PariseauTT" rel="noopener"><i>@PariseauTT</i></a><i>.</i></p></section>

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Terraform 基础设施自动化 HashiCorp FinOps 混合云 HCL Ansible
相关文章