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 am trying get all our users managed via TF as SSO is $$$. See LD on the wall of shame, here: https://sso.tax/.
I have the account owner declared as a resource:
# pointyhair boss <[email protected]>resource"launchdarkly_team_member""pointyhair_boss" {
email="[email protected]"first_name="pointyhair"last_name="boss"# This generates an errorrole="owner"# This does not... but it also incorrect. API docs not super clear on what (attempting) to demote would do.#role = "admin"# Note: this does not work as the error is happening in the validation phase... well before TF does a refreshlifecycle {
ignore_changes=[
role
]
}
}
When running tf plan I get this:
│ Error: expected role to be one of [reader writer admin], got owner
Sorry to hear this is causing issues for you. Unfortunately there are currently several protections in place that prevent us from adding the owner role to the Terraform provider directly, such as:
There can only be one owner at a time
You cannot change the owner via API (only via session auth)
You cannot change your own role
I'll escalate
Have you tried your workaround withadmin, and ignore_changes?:
# pointyhair boss <[email protected]>resource"launchdarkly_team_member""pointyhair_boss" {
email="[email protected]"first_name="pointyhair"last_name="boss"# This generates an errorrole="admin"lifecycle {
ignore_changes=[
role
]
}
}
I am trying get all our users managed via TF as SSO is $$$. See LD on the wall of shame, here: https://sso.tax/.
I have the account owner declared as a resource:
When running
tf plan
I get this:I believe the issue is here:
https://github.com/launchdarkly/terraform-provider-launchdarkly/blob/master/launchdarkly/resource_launchdarkly_team_member.go#L49
The text was updated successfully, but these errors were encountered: