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
Describe the bug
I created a service account with viewer permissions successfully. After that, I tried to modify the permissions with Terraform to editor and agent. Running terraform apply produces the following error:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# mondoo_service_account.service_account will be updated in-place
~ resource "mondoo_service_account" "service_account" {
name = "Service Account Terraform"
~ roles = [
"//iam.api.mondoo.app/roles/viewer",
+ "//iam.api.mondoo.app/roles/agent",
+ "//iam.api.mondoo.app/roles/editor",
]
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
mondoo_service_account.service_account: Modifying... [name=Service Account Terraform]
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to mondoo_service_account.service_account, provider "provider[\"registry.terraform.io/mondoohq/mondoo\"]" produced an unexpected new value: .roles: element 1 has vanished.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to mondoo_service_account.service_account, provider "provider[\"registry.terraform.io/mondoohq/mondoo\"]" produced an unexpected new value: .roles: element 2 has vanished.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Describe the bug
I created a service account with
viewer
permissions successfully. After that, I tried to modify the permissions with Terraform toeditor
andagent
. Runningterraform apply
produces the following error:To Reproduce
Steps to reproduce the behavior:
terraform apply
terraform apply
Expected behavior
Mondoo provider should be able to modify the permissions of a service account.
The text was updated successfully, but these errors were encountered: