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

Add tfe_github_app_installations Data Source #1430

Open
zisom-hc opened this issue Jul 29, 2024 · 1 comment
Open

Add tfe_github_app_installations Data Source #1430

zisom-hc opened this issue Jul 29, 2024 · 1 comment

Comments

@zisom-hc
Copy link
Contributor

zisom-hc commented Jul 29, 2024

Use-cases

I need to be able to reference all of the available github app installations through a single resource.

Attempted Solutions

No current solution to dynamically pull data about the currently configured GitHub Apps. The tfe_github_app_installation resource requires that you must specify identifying details about a particular GitHub App installation for it to obtain information.

Proposal

Name: tfe_github_app_installations
Argument(s):

  • organization (optional) - If it's an HCP Terraform account
    • This one doesn't allow to TFE, but would be assumed from the provider configuration if not provided explicitly
  • hostname (optional) - if it's a Terraform Enterprise installation (since GitHub Apps exist at the platform/admin level)
    • By default, this value would be assumed from the provider configuration

Attributes:

  • Name
  • GitHub App ID

This would greatly reduce the amount of tfe_github_app_installation data sources we need to have within our workspace onboarding module (1 for every workspace[1,000+]), which would result in significantly reduced plan operation times, and API calls made to HCPT/TFE.

@zisom-hc
Copy link
Contributor Author

Bumping this as it's still highly desired, and would be highly impactful to have implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant