2.7 KiB
2.7 KiB
title_tag, meta_desc, title, h1, meta_image, menu, aliases
title_tag | meta_desc | title | h1 | meta_image | menu | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pulumi vs. Terraform: Terminology and Commands | Many of the terms you may know from working with Terraform have direct equivalents in Pulumi. Here is a list of common terms and how they relate to Pulumi. | Pulumi equivalents | Pulumi terms & command equivalents | /images/docs/meta-images/docs-meta.png |
|
|
If you're already familiar with Terraform, learning Pulumi terminology and commands is simple. Many of the existing Terraform vocabulary and commands that you already know have direct equivalents in Pulumi. The table below lists common Terraform terms and CLI commands along with their Pulumi equivalents.
Terminology
Terraform | Pulumi |
---|---|
Workspace | Stack |
Variables | Stack Config |
Directory | Project |
Module | Component |
Resource | Resource |
Interpolation | Interpolation |
Run | Up |
Output Values | Outputs |
State | State |
State Version | Update Events |
Backend | Backend |
Deposed | Pending Operations |
Commands
Terraform | Pulumi |
---|---|
init |
pulumi new |
validate |
Validation is performed with the inherent syntax checking and testing frameworks in the supported programming languages |
plan |
pulumi preview |
apply |
pulumi up |
destroy |
pulumi destroy |
console |
Pulumi commands can be evaluated in a standard programming language shell |
fmt |
Standard programming language linting tools checks for format and style |
force-unlock |
pulumi cancel |
get |
Reusable modules are directly imported as a library in the programming language |
graph |
pulumi stack graph |
import |
pulumi import -f resources.json |
login |
pulumi login |
logout |
pulumi logout |
output |
pulumi stack output |
providers |
pulumi plugin |
refresh |
pulumi refresh |
show |
pulumi stack |
state |
pulumi state |
version |
pulumi version |
workspace |
pulumi stack |