You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 I previously managed the 'owners' team in my (free plan) terraform cloud account. This is a default team that exists in all orgs (I think?). I imported that team into the tfe_team a while ago without issue. It's not actually that useful to manage a default team that cannot be changed 😄, but it's something I had set up.
It looks like the newest version of this provider no longer allows this configuration and currently crashes terraform. The crash occurs both on a plan/apply of the existing setup and on any attempt to import that team. Maybe it was never an intended feature, but crashes aren't great so here's some details to help resolve!
It looks like this bug was introduced in this PR (#155), since it's the only change to that file in the last 9 days (the last time I successfully applied). I haven't looked too deeply into the issue but the crash begins on line 126.
Here's the terraform that used to work and no longer does (I'm on the free plan, authenticating with a personal token).
This configuration was previously (months ago) imported successfully and recently started producing the crash. I resolve the issue for myself by removing the tfe_team and tfe_team_members from state with terraform state rm .... I then tried to re-import the team but it produced the same issue.
I hope this is enough information to resolve the panic! Thank you for a great provider 🙇
The text was updated successfully, but these errors were encountered:
This comes from the organization rather than team, as the attributes are there in TFE. As you note I don't think this is an intended feature since all the attributes are immutable. But I'll get the crash fixed.
bendrucker
added a commit
to bendrucker/terraform-provider-tfe
that referenced
this issue
May 25, 2020
Hi! Thanks for the awesome report, this is more than enough to resolve it! And thanks @bendrucker for following up.
The issue is indeed that the organization access key is not returned in all cases, so the updates to state must be conditional; I've explained a bit more in #181
👋 I previously managed the 'owners' team in my (free plan) terraform cloud account. This is a default team that exists in all orgs (I think?). I imported that team into the
tfe_team
a while ago without issue. It's not actually that useful to manage a default team that cannot be changed 😄, but it's something I had set up.It looks like the newest version of this provider no longer allows this configuration and currently crashes terraform. The crash occurs both on a plan/apply of the existing setup and on any attempt to import that team. Maybe it was never an intended feature, but crashes aren't great so here's some details to help resolve!
Here is the relevant part of the
crash.log
It looks like this bug was introduced in this PR (#155), since it's the only change to that file in the last 9 days (the last time I successfully applied). I haven't looked too deeply into the issue but the crash begins on line 126.
Here's the terraform that used to work and no longer does (I'm on the free plan, authenticating with a personal token).
This configuration was previously (months ago) imported successfully and recently started producing the crash. I resolve the issue for myself by removing the
tfe_team
andtfe_team_members
from state withterraform state rm ...
. I then tried to re-import the team but it produced the same issue.I hope this is enough information to resolve the panic! Thank you for a great provider 🙇
The text was updated successfully, but these errors were encountered: