Open jaredbrogan opened 1 year ago
Hi @jaredbrogan!
Terraform Enterprise is the self-hosted edition of Terraform Cloud, so in this context the brand "Terraform Cloud" is referring generically to both the managed version on app.terraform.io
and to the self-hosted version which you deploy at your own hostname. From the perspective of Terraform CLI, these two are indistinguishable: they both implement the same API and use the same Terraform Cloud features.
It sounds like what you found most troublesome here is that the migration prompts didn't affirm that you were using a hostname other than app.terraform.io
and so you were worried that it might be about to migrate to the managed version. Is that right? If so, would it satisfy you for the initial prompt to mention the configured hostname, to confirm exactly what is the target for the migration?
14:02:12 $ terraform init
Initializing Terraform Cloud...
Migrating from backend "remote" to Terraform Cloud at tfe.redacted.com.
Initializing provider plugins...
(and everything else, unchanged)
My intent with this proposal is that terraform init
would add this additional note if the hostname is anything other than the default hostname of app.terraform.io
, because folks who are using the managed version don't typically specify an explicit hostname.
Hi @jaredbrogan!
Terraform Enterprise is the self-hosted edition of Terraform Cloud, so in this context the brand "Terraform Cloud" is referring generically to both the managed version on
app.terraform.io
and to the self-hosted version which you deploy at your own hostname. From the perspective of Terraform CLI, these two are indistinguishable: they both implement the same API and use the same Terraform Cloud features.It sounds like what you found most troublesome here is that the migration prompts didn't affirm that you were using a hostname other than
app.terraform.io
and so you were worried that it might be about to migrate to the managed version. Is that right? If so, would it satisfy you for the initial prompt to mention the configured hostname, to confirm exactly what is the target for the migration?14:02:12 $ terraform init Initializing Terraform Cloud... Migrating from backend "remote" to Terraform Cloud at tfe.redacted.com. Initializing provider plugins... (and everything else, unchanged)
My intent with this proposal is that
terraform init
would add this additional note if the hostname is anything other than the default hostname ofapp.terraform.io
, because folks who are using the managed version don't typically specify an explicit hostname.
Yes, you are correct. A small change such as that should be enough in my opinion. 😃
Great, thanks for confirming that!
In that case, we'll use this issue to represent enhancing the init output to be explicit about which hostname is active in the configuration whenever it isn't the default hostname.
Terraform Version
Terraform Configuration Files
Debug Output
n/a
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform init
Additional Context
n/a
References
Per this document: https://developer.hashicorp.com/terraform/cli/cloud/settings#hostname The
hostname
argument is solely for the purpose of using a TFE instance, so I would expect the output of commands to reflect that instead of "Cloud".This wasn't an issue prior due to how the
backend
block would be generic enough in its output to not really matter. However, for those that use TFE and are transitioning frombackend
tocloud
, this is a bit of a shock when first encountered (especially since when you have a non-empty state it prompts you to migrate).