-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cyclic dependency when creating terraform code that creates a project and some related repositories. #58
Comments
Hello @ricardf !
In any case linking repos with project not trivially issue |
@ricardf The use of The way the provider is implemented currently (and the way Terraform state works) means you have to choose which provider you define the project-repo relationship. The simplest and recommended way is to define the list of repo keys in the project provider's I understand that using the We will update the documentation and include more explanation and recommendation. |
Add recommendation note to repos attribute
@alexhung
|
@oallauddin Great suggestion. I'll schedule this addition. |
Add more details on repository configuration to documentation
Describe the bug
Using both providers, terraform-provider-project and terraform-provider-artifactory, I create the project, with all the information needed with the attribute "repos" empty. Then, the repositories are created with reference to that project. Repositories are created inside the project.
After a second update, "repos" field will update from having some repositories to having none, as repos are empty. To solve this I need to add the list of repositories created... but I only can add them afterward as there is a dependency between the project and the repositories and the other way around.
Expected behavior
If repos field is not set, it should not be forced to be empty, or in some way, I need to be able to retrieve the repositories associated with the project to add them to that list.
The text was updated successfully, but these errors were encountered: