0% found this document useful (0 votes)
72 views3 pages

9 Terraform Cloud Getting Started

Terraform Cloud is HashiCorp's managed service that eliminates tooling and documentation needs for using Terraform in production. It provides free remote state storage and helps provision infrastructure securely in the cloud. The document discusses signing up for Terraform Cloud, cloning a sample code repo, and running a setup script to automatically create a Terraform Cloud organization and deploy mock infrastructure to demonstrate usage.

Uploaded by

Eyad Zaen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views3 pages

9 Terraform Cloud Getting Started

Terraform Cloud is HashiCorp's managed service that eliminates tooling and documentation needs for using Terraform in production. It provides free remote state storage and helps provision infrastructure securely in the cloud. The document discusses signing up for Terraform Cloud, cloning a sample code repo, and running a setup script to automatically create a Terraform Cloud organization and deploy mock infrastructure to demonstrate usage.

Uploaded by

Eyad Zaen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab: Terraform Cloud - Getting Started

Terraform Cloud is HashiCorp’s managed service offering that eliminates the need for unnecessary
tooling and documentation to use Terraform in production. Terraforn Cloud helps you to provision
infrastructure securely and reliably in the cloud with free remote state storage. Teraform Cloud and
it’s self hosted counterpart Terraform Enterprise offer Workspaces, Private Module Registry, Team
Goverenance along with Policy as Code (Sentinel) as a few of it’s benefits.

• Task 1: Sign up for Terraform Cloud


• Task 2: Clone Getting Started Code Repository
• Task 3: Run setup script to create TFC Organization for course

Task 1: Sign up for Terraform Cloud

In this lab you will sign up and get started with Terraform Cloud utilize the Terraform Cloud.

1. Navigate to the sign up page and create an account for Terraform Cloud. If you already have a
TFC account

2. Perform a terraform login from your workstation

Terraform will request an API token for app.terraform.io using your browser.

If login is successful, Terraform will store the token in plain text in


the following file for use by subsequent commands:
/home/student/.terraform.d/credentials.tfrc.json

Do you want to proceed?


Only 'yes' will be accepted to confirm.

Enter a value:

2. Answer yes at the prompt and generate a TFC user token by following the URL provided and
copy-paste it into the prompt.

---------------------------------------------------------------------------------

Open the following URL to access the tokens page for app.terraform.io:
https://app.terraform.io/app/settings/tokens?source=terraform-login

---------------------------------------------------------------------------------

1
1. If the token was entered succesfully you should see the following:

Retrieved token for user tfcuser

---------------------------------------------------------------------------------

-
-----
-
---------
--
--------- -
-----
--------- ------
-------
------- --------- ----------
---- ---------- ----------
-- ---------- ----------
Welcome to Terraform Cloud! - ---------- -------
--- ----- ---
Documentation: terraform.io/docs/cloud -------- -
----------
----------
---------
-----
-

New to TFC? Follow these steps to instantly apply an example configuration:

$ git clone https://github.com/hashicorp/tfc-getting-started.git


$ cd tfc-getting-started
$ scripts/setup.sh

Task 2: Clone Getting Started Code Repository

We will utilize a sample code repo to get started with Terraform Cloud. You can clone this sample repo
using the following conmmands:

git clone https://github.com/hashicorp/tfc-getting-started.git


cd tfc-getting-started

2
Task 3: Run setup script to create TFC Organization for course

This startup script within the sample code repo automatically handles all the setup required to start
using Terraform with Terraform Cloud. The included configuration provisions some mock infrastructure
to a fictitious cloud provider called “Fake Web Services” using the fakewebservices provider.

./scripts/setup.sh

Follow the prompts provided by the script which will create a Terraform organization along with mock
infrastructure.

--------------------------------------------------------------------------
Getting Started with Terraform Cloud
-------------------------------------------------------------------------

Terraform Cloud offers secure, easy-to-use remote state management and allows
you to run Terraform remotely in a controlled environment. Terraform Cloud runs
can be performed on demand or triggered automatically by various events.

This script will set up everything you need to get started. You'll be
applying some example infrastructure - for free - in less than a minute.

First, we'll do some setup and configure Terraform to use Terraform Cloud.

Press any key to continue (ctrl-c to quit):

You did it! You just provisioned infrastructure with Terraform Cloud! The organization w

Navigate to your workspace, along with mock infrastruture that you just deployed:

• Terraform Cloud: https://app.terraform.io/

• Mock infrastructure you just provisioned: https://app.terraform.io/fake-web-services

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy