Collaborate on version-controlled configuration using Terraform Cloud. Follow this track to build, change, and destroy infrastructure using remote runs and state.
Sign up for Terraform Cloud, 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 Terraform Cloud from the CLI
Log into Terraform Cloud or Enterprise with the Terraform CLI to migrate state, trigger remote runs, and interact with Terraform Cloud.
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 Terraform Cloud workspace. Update configuration to enable integration with Terraform Cloud.
4min
Create infrastructure
Set EC2 instance attributes using Terraform Cloud workspace variables. Create the instance by planning and applying a run in Terraform Cloud.
4min
Change infrastructure
Use command line input variables to modify infrastructure managed by Terraform Cloud. Review workspace contents and interface.
7min
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.
3min
Destroy resources and workspaces
Destroy the resources in a Terraform Cloud workspace, and delete the workspace via the web UI.
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 Terraform Cloud, and queue a plan to test the policy.
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.