Closed phillipuniverse closed 1 year ago
This appears to be a problem with attempting to retrieve the DeliveryType as implemented in 43e5b15371552acd3978b56ea247b5652f2d9b3c. If I try to add a delivery_type
I get this on a terraform plan
:
Error: Unsupported argument
│
│ on postmark.tf line 13, in resource "postmark_server" "someserver":
│ 13: delivery_type = "live"
│
│ An argument named "delivery_type" is not expected here.
I suspect that 43e5b15371552acd3978b56ea247b5652f2d9b3c is incomplete and a delivery_type
needs to be added to this schema:
Reverted back to 0.2.1 and that allowed me to apply the plan.
@phillipuniverse Thank you for reporting the issue, we will look into it
@phillipuniverse fixed in version 0.2.4
@MuhammeedAlaa thanks for the quick response!! Confirmed this now applies successfully with 0.2.4, fixed by 0fec098c58e4f4555b20a993189c2ceba62ec2de.
resource "postmark_server" "someserver" {
name = "someserver-${var.environment}"
delivery_type = var.environment == "prod" ? "live" : "Sandbox"
}
When applying a plan with this terraform:
I get this:
Same result with Terraform 1.1.5 and 1.3.9.