Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Using this module without existing teams #12

Open
rgreinho opened this issue Mar 16, 2019 · 1 comment
Open

Using this module without existing teams #12

rgreinho opened this issue Mar 16, 2019 · 1 comment

Comments

@rgreinho
Copy link

Here is my use case:

As an administrator I would like to configure a brand new GitHub organization using this module, in combination with terraform-github-team.

Right now it does not work because this module uses a data sources to find the team IDs. Which means that I have to create my teams before being able to use this module.

The other drawback of using the data source for the teams is that I cannot refer teams that I create with Terraform even with simple resources as the dependency graph will be incorrect.

@rgreinho
Copy link
Author

I kept digging on this issue and did the following:

  • In the terraform-github-team module I added outputs (see innovationnorway/terraform-github-team#8)
  • I removed the data source looking up for the teams in this module.
  • I passed module.myteam.id instead of the slug to the teams object

But then I hit thew value of count cannot be computed problem 😢. Crawling though the github issues, I found these one which was very relevant to my problem: hashicorp/terraform#12570.

Sadly, I am not sure whether there is a valid solution at this point.

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

No branches or pull requests

1 participant