Terraform apply fails on: 409 Conflict: That action name has already been taken

I have many resources in terraform files that I have been able to successfully apply via terraform apply. I successfully applied them several times last week, even when I changed some of the actions. Today I’m getting errors on some of the resources: 409 Conflict: This action name is already in use. Yes, action exists but I expected to not be created but replaced in-place. I don’t know what to do about it and why it can’t update in-place the action it’s targeting.

I’m using auth0 provider version 1.12.0 and Terraform version 1.10.5

P.S I was trying to add terraform tag but couldn’t find one.

Hi, @mbolek

Terraform is trying to create a new action with the same name, which is not possible. I’d suggest deleting the action and trying to create it again, or try to create the same action, but under a different name.

If you have any other questions, let us know.

Have a good one,
Vlad

Hi @vlad.murarasu. Thanks for your reply, although that was not the issue in this case.

The problem was that my colleague and I were executing terraform apply from our own computers, so we weren’t sharing terraform state. I solved it by using AWS S3 backend for terraform state.