TA-002-P · Question #284
Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________?
The correct answer is A. an API token. Managing Terraform Cloud from the CLI requires an API token for authentication. You authenticate by running terraform login, which opens a browser to generate an API token that is then stored locally (in ~/.terraform.d/credentials.tfrc.json). Alternatively, the token can be set…
Question
Select the answer below that completes the following statement: Terraform Cloud can be managed from the CLI but requires __________?
Options
- Aan API token
- Ba TOTP token
- Ca username and password
- Dauthentication using MFA
How the community answered
(19 responses)- A89% (17)
- B5% (1)
- C5% (1)
Explanation
Managing Terraform Cloud from the CLI requires an API token for authentication. You authenticate by running terraform login, which opens a browser to generate an API token that is then stored locally (in ~/.terraform.d/credentials.tfrc.json). Alternatively, the token can be set via the TF_TOKEN_app_terraform_io environment variable. Terraform Cloud does not use a username/password (C) or TOTP token (B) directly for CLI authentication. While MFA (D) may protect the Terraform Cloud web account, CLI access is token-based, not MFA-based.
Topics
Community Discussion
No community discussion yet for this question.