Answer is A.
Note: We recommend omitting the token from the configuration, and instead using terraform login or manually configuring credentials in the CLI config file.
Reference: https://www.terraform.io/language/settings/backends/remote
Answer is A
This means that you should use environment variables to store these credentials. The partial configuration does not include sensitive data in the file but relies on environment variables that Terraform automatically detects.
Credentials and Sensitive Data
https://developer.hashicorp.com/terraform/language/settings/backends/configuration#credentials-and-sensitive-data
Warning: We recommend using environment variables to supply credentials and other sensitive data. If you use -backend-config or hardcode these values directly in your configuration, Terraform will include these values in both the .terraform subdirectory and in plan files. This can leak sensitive credentials.
Partial Configuration
You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable if some arguments are provided automatically by an automation script running Terraform. When some or all of the arguments are omitted, we call this a partial configuration.
With a partial configuration, the remaining configuration arguments must be provided as part of the initialization process.
https://developer.hashicorp.com/terraform/language/settings/backends/configuration#partial-configuration
Warning: We recommend using environment variables to supply credentials and other sensitive data. If you use -backend-config or hardcode these values directly in your configuration, Terraform will include these values in both the .terraform subdirectory and in plan files. This can leak sensitive credentials.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Hizumi
Highly Voted 2 years, 2 months agoMattt
Most Recent 2 months, 1 week agoBere
12 months agoTyler2023
1 year agoTyler2023
1 year agocruz95
1 year, 2 months agocamps
1 year, 7 months agolegendary7
2 years, 1 month agoRVivek
2 years, 2 months agojjkcoins
2 years, 2 months agojjkcoins
2 years, 2 months agohkacholiya
2 years, 2 months agoshopkitty
2 years, 2 months agoBurakko
2 years, 2 months ago