Skip to content

devandreacarratta/aws-transfer-family-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Transfer Family in action: Hosting files with sFTP and Terraform (real case study)

image

This project shows how to create an SFTP server on AWS using Terraform and the AWS Transfer Family. It includes key generation, FileZilla configuration, and S3 integration for file uploads.

Terraform Graph

image

Files

  • main.tf: defines the provider and a local variable for general purposes

  • main_random.tf: I love random naming conventions. In this case, I'm using the random_pet and random_string resources

  • main_transfer_server.tf: this file contains the aws_transfer_server and aws_transfer_user resources

  • main_s3.tf: defines the aws_s3_bucket and aws_s3_object resources

  • main_ssh_key.tf: here I create the SSH key used for sFTP access

  • main_iam_role.tf: if you don’t set up IAM correctly, you won’t be able to use the solution

  • main_ftp_connector_filezilla_xml.tf: I’m lazy and don’t want to explain how to connect to an sFTP server, so I just upload a FileZilla importable file to the bucket

More details

You'll find the high-level explanation on my blog in the post

Have a good cloud day!

License

This project is licensed under the MIT License. Use at your own risk.

  • If something breaks, it's your problem. 😆
  • If it costs you money, that's still your problem. 💸