Terraform Cloud & Enterprise Capabilities Flashcards

1
Q

Whats HCP Terraform?

A

HCP (Hashicorp Cloud Platform) Terraform manages Terraform runs in a consistent and reliable environment with various features like access control, private registry for sharing modules, policy controls and others.

Its broken down by workspaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the use of the organizations in HCP?

A

They are a shared spare for one or more teams to collab on workspaces.

HCP Terraform manages plans/billing at the org level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats the HCP Terraform Workspace?

A

The workspace acts as a folder with relatable files for project to run

The terraform config files aren’t directly uploaded to a workspace, instead the workspaces are connected to a Github repository where it can fetch the code from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does variable values differ from local terraform to HCP Terraform?

A

Locally, you store in .tfvars file, as CLI Arguments, or shell environment. In HCP, you store in the workspace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are the state files stored in HCP Terraform?

A

They are stored also in the workspace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What three types of workflows exist in HCP

A
  1. Version Control
  2. CLI-Driven (working directory (local) is linked with HCP workspace). Plan/apply commands can also be run locally.
  3. API-Driven
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you setup the CLI HCP Cloud integration?

A
  1. You have to add a code block within your .tf file to setup cloud integration.

terraform {
cloud {
organization = “org_name”

    workspaces {
        name = "workspace_name"
    }
} }
  1. Once block has been added, do the command terraform login in your CLI
  2. terraform init
  3. terrform plan
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Sentinel?

A

Sentinel is a policy-as-code framework integrated with the Hashicorp Enterprise products.

It enables fine-grained, logic-based policy decisions, and can be extended to use information from external sources.

Note: Sentinel policies are paid features.

Ex: You can create a policy in sentinel to block EC2 creation without tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are air-gapped environments?

A

An air gap is a network security measure employed to ensure that a secure computer network is physically isolated from unsecured networks, such as the public internet.

Ex: military/govt’t, financial systems (stock exchange), industrial control systems (SCADA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can you install Terraform Enterprise on an air-gapped network?

A

Terraform Enterprise installs using either an online or air gapped method and as the name infers, one requires internet connectivity, the other doesnt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly