terrafom project to deploy sftp server on aws
- install python 3
- in uploadLambdaPKGtoS3.py set the value of the below variables region => the region of the resources bucket_name => the name of the bucket that will include the lambda packages
- update the variables in the terraform\3ddx\variables.tf
- in terraform\3ddx\main.tf add for each user section like this module "secretUser2" { source = "../modules/aws-secret-manager" sftp-username = "user2" sftp-password = "password2" sftp_bucket_name = "${module.s3.s3-bucket-id}" sftp_bucket_id = "${module.s3.s3-bucket-id}" }
python uploadLambdaPKGtoS3.py
.\terraform.exe init .\terraform\3ddx\
.\terraform.exe plan .\terraform\3ddx\
.\terraform.exe apply .\terraform\3ddx\
- The run command will return the sftp server name
- use this server name with any of the username and password pairs to connect to the sftp server
- the user will able access its folder only with read / write permission