tafaust
tafaust15mo ago

Unexpected errors with update / destroy behavior of Terraform Zitadel SMTP Config

When I use the latest (1.3.0) terraform provider, I end up with the following error messages upon update / destroy for instance SMTP config:

│ Error: failed to update smtp config: rpc error: code = InvalidArgument desc = invalid UpdateSMTPConfigRequest.Id: value length must be between 1 and 100 runes, inclusive

│ with zitadel_smtp_config.default,
│ on main.tf line 2, in resource "zitadel_smtp_config" "default":
│ 2: resource "zitadel_smtp_config" "default" {



│ Error: failed to update smtp config: rpc error: code = InvalidArgument desc = invalid UpdateSMTPConfigRequest.Id: value length must be between 1 and 100 runes, inclusive

│ with zitadel_smtp_config.default,
│ on main.tf line 2, in resource "zitadel_smtp_config" "default":
│ 2: resource "zitadel_smtp_config" "default" {


and

│ Error: failed to delete smtp config: rpc error: code = InvalidArgument desc = invalid RemoveSMTPConfigRequest.Id: value length must be between 1 and 100 runes, inclusive




│ Error: failed to delete smtp config: rpc error: code = InvalidArgument desc = invalid RemoveSMTPConfigRequest.Id: value length must be between 1 and 100 runes, inclusive



It looks like the resource is still created / updated / destroyed but the error message is rather confusing.
4 Replies
tafaust
tafaustOP14mo ago
@FFO It has been a while but I had to take a break because of my daughters birth 🙂 I am still stuck with this error. Are there any plans that this will be fixed with the terraform provider? This is my resource:
resource "zitadel_smtp_config" "default" {
sender_address = "iam-noreply@${local.zitadel_domain}"
reply_to_address = "iam-noreply@${local.zitadel_domain}"
sender_name = "iam-noreply@${local.zitadel_domain}"
tls = false
host = var.SMTP_CONFIG.host
user = var.SMTP_CONFIG.user
password = var.SMTP_CONFIG.password
}
resource "zitadel_smtp_config" "default" {
sender_address = "iam-noreply@${local.zitadel_domain}"
reply_to_address = "iam-noreply@${local.zitadel_domain}"
sender_name = "iam-noreply@${local.zitadel_domain}"
tls = false
host = var.SMTP_CONFIG.host
user = var.SMTP_CONFIG.user
password = var.SMTP_CONFIG.password
}
FFO
FFO14mo ago
First congrats! I hope you can enjoy the early days :partyparrot: Let us bump @Elio @stebenz here since they know the most of the TF provider
tafaust
tafaustOP14mo ago
Thank you!

Did you find this page helpful?