Closed mcowart123 closed 9 months ago
Version is 0.0.8 (current latest)
Edit: It looks like adding the port to the end of the endpoint fixes the issue:
endpoint = "${azurerm_storage_account.storage.name}.blob.core.windows.net:22"
Version is 0.0.8 (current latest)
Edit: It looks like adding the port to the end of the endpoint fixes the issue:
endpoint = "${azurerm_storage_account.storage.name}.blob.core.windows.net:22"
This is the right way, SFTPGo automatically adds :22 on save if the port is missing. Terraform expects to get the same value set, so you need to add :22 yourself and not rely on server-side input sanitization when using Terraform
If port is required it should fail on the plan step and not allow the state to become tainted.
If port is required it should fail on the plan step and not allow the state to become tainted.
yes, we can improve the validation. Feel free to send a PR, thank you!
Example terraform:
Output of terraform apply:
The user is successfully created in sftp-go.
Output afterwards of terraform-plan:
To clean up requires a terraform state rm.