Collaborate on version-controlled configuration using HCP Terraform. Follow this track to build, change, and destroy infrastructure using remote runs and state.
Sign up for HCP Terraform, which provides free remote state storage, a stable run environment, version control system (VCS) driven plans and applies, a collaborative web GUI, and more. Create your first organization.
3min
Log in to HCP Terraform from the CLI
Log into HCP Terraform or Enterprise with the Terraform CLI to migrate state, trigger remote runs, and interact with HCP Terraform.
3min
Create a credentials variable set
Create a variable set for your AWS IAM credentials that you can reuse across workspaces. Apply the variable set to a workspace.
4min
Create a workspace
Create a CLI-driven HCP Terraform workspace. Update configuration to enable integration with HCP Terraform.
4min
Create infrastructure
Set EC2 instance attributes using HCP Terraform workspace variables. Create the instance by planning and applying a run in HCP Terraform.
5min
Change infrastructure
Use command line input variables to modify infrastructure managed by HCP Terraform. Review workspace contents and interface.
6min
Use VCS-driven workflow
Update a workspace to use the version control system-driven workflow with GitHub. Queue a speculative plan by opening a pull request.
5min
Enforce a policy
Create a version-controlled policy to check the Terraform version using Sentinel, a policy-as-code platform. Fork a demo repo, connect the policy to HCP Terraform, and queue a plan to test the policy.
3min
Destroy resources and workspaces
Destroy the resources in an HCP Terraform workspace, and delete the workspace via the web UI.
5min
Control costs with policies
Write a soft-mandatory Sentinel policy against example infrastructure to limit its cost to less than one hundred dollars a month.