This repository was archived by the owner on Mar 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 147
This repository was archived by the owner on Mar 8, 2022. It is now read-only.
auth0_action: action does not get deployed #470
Copy link
Copy link
Closed
Labels
Description
Description
I had imported the existing deployed action using terraform import
. Later if I am applying the changes via terraform apply with deploy = true
, then its giving following error:
Error: 400 Bad Request: A draft must be in the 'built' state before it can be deployed.
I see that new code changes has been saved, but not deployed.
Terraform Version
Terraform v1.0.7
on linux_amd64
+ provider registry.terraform.io/alexkappa/auth0 v0.24.0
+ provider registry.terraform.io/hashicorp/local v2.0.0
Your version of Terraform is out of date! The latest version
is 1.0.11. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
- auth0_action
Terraform Configuration Files
esource "auth0_action" "test-action" {
name = "test"
supported_triggers {
id = "pre-user-registration"
version = "v2"
}
code = file("test.js")
runtime = "node16"
dependencies {
name = "Dep1"
version = "v1"
}
dependencies {
name = "Dep2"
version = "v2"
}
secrets {
name = "SOME_KEY"
value = "SOME_VALUE"
}
deploy = true
}
Expected Behavior
Action should get deployed as well and should not give above mentioned error.
Actual Behavior
error:
Error: 400 Bad Request: A draft must be in the 'built' state before it can be deployed.
Steps to Reproduce
terraform apply
Debug Output
Panic Output
Important Factoids
References
- same issue with auth0-deploy-cli
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment