Minimal Terraform module to stand up a public sftp server on Azure. This module uses Azure Files and Container instance.
-
location
azure region name.
Run
az account list-locations -o table
to see a list of locations. -
prefix
prefix to use for new resources created by this module
-
sftp_user_name
sftp user name
-
sftp_folder
directory name to which upload and download files.
this directory is mounted on the ftp user's home directory.
azure file share is mounted on this folder.
This is the only directory user can write to.
-
sftp_password
fqdn
- FQDN of the sftp serverip_address
- IP address of the sftp server.
examples folder a sample deployment that uses this module.
You would need your azure subscription_id
, a service account (client_id
, client_secret
and tenant_id
)
Check terraform docs for more information on how to setup the service account.
$ cd examples
$ terraform init
$ terraform plan # to preview the changes.
$ terraform apply # to create the resources
$ terraform plan -destroy # to preview the changes
$ terraform destroy # to clean up the resources.