-
Notifications
You must be signed in to change notification settings - Fork 40
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
Adding new team to teams.csv returns error with terraform plan #1
Comments
You can solve this by running |
I am also facing the same issue and terraform apply -target is definitely not a recommended way. Is there any other way to achieve this as it needs to be run through pipelines. |
Use count instead for_each working. |
@PrinceAgrawal89 @grantbevis I solved this, by creating a module, that creates the team and adds the members. This way it's easier to access the team ids. A quick and dirty example :
And the main script:
all you have to do, is to change the locals so they're not using resources directly and then use them instead of the hardcoded values |
@devfalcon3 I tried with following code which didnt help and I got the same error message as before.
|
When trying to add a new team to the org by adding it to the CSV file I am getting the following error:
I get the error with or without the respective team csv file existing in the team-members folder.
If I add the team via the gui first and then import the team I'm able to get the plan and apply to work.
The text was updated successfully, but these errors were encountered: