Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track usage of cloud block #912

Closed
1 task done
radeksimko opened this issue May 5, 2022 · 1 comment · Fixed by #1208
Closed
1 task done

Track usage of cloud block #912

radeksimko opened this issue May 5, 2022 · 1 comment · Fixed by #1208
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@radeksimko
Copy link
Member

radeksimko commented May 5, 2022

Background

Terraform Cloud users can use the remote backend type to enable CLI-driven run workflow in TFC.

For example:

terraform {
  backend "remote" {
    hostname = "app.terraform.io"
    organization = "company"

    workspaces {
      name = "my-app-prod"
    }
  }
}

Recently, Terraform 1.1 introduced a dedicated cloud block:

terraform {
  cloud {
    organization = "example_corp"

    workspaces {
      tags = ["app"]
    }
  }
}

Knowing the migration rate towards the cloud block would help the broader Terraform team and us too, so we know how many users still need help with the migration, which we can offer e.g. via dedicated code action.

Proposal

Add extra field to the moduleData telemetry event we already track:

{
    "v": 1,
    "name": "moduleData",
    "properties": {
        "backend": "remote",
        "cloud": {},
    }
}

TODO - may need some minor changes in hcl-lang

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants