Skip to content

An example Terraform configuration for Terraform Cloud

License

Notifications You must be signed in to change notification settings

spkane/terraform-cloud-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Cloud Example Repo

In this repo, you'll find a quick and easy path to get started using Terraform Cloud with the Terraform CLI.

What's here?

This repo contains two main things:

  • An example of a Terraform configuration that provisions some mock infrastructure.
  • A script that demonstrates how you can automatically handle all the setup required to start using Terraform with Terraform Cloud.

Requirements

  • Terraform 1.3.0 or higher
  • The ability to run a bash script in your terminal
  • sed
  • curl
  • jq

Usage

1. Log in to Terraform Cloud via the CLI

Run terraform login and follow the prompts to get an API token for Terraform to use. If you don't have a Terraform Cloud account, you can create one during this step.

2. Clone this repo

git clone /~https://github.com/spkane/terraform-cloud-example.git
cd terraform-cloud-example

3. Run the setup script and follow the prompts

./scripts/setup.sh

Welcome to Terraform Cloud!

About

An example Terraform configuration for Terraform Cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 82.1%
  • HCL 17.9%