https://github.com/devandreacarratta/aws-transfer-family-terraform
AWS Transfer Family in action: Hosting files with sFTP and Terraform (real case study)
https://github.com/devandreacarratta/aws-transfer-family-terraform
aws aws-transfer-family terraform terraform-aws
Last synced: 7 months ago
JSON representation
AWS Transfer Family in action: Hosting files with sFTP and Terraform (real case study)
- Host: GitHub
- URL: https://github.com/devandreacarratta/aws-transfer-family-terraform
- Owner: devandreacarratta
- License: mit
- Created: 2025-04-12T14:46:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-12T16:46:48.000Z (7 months ago)
- Last Synced: 2025-04-12T20:54:01.719Z (7 months ago)
- Topics: aws, aws-transfer-family, terraform, terraform-aws
- Language: HCL
- Homepage: https://blog.devandreacarratta.it/en/aws-transfer-family-terraform/?utm_source=github&utm_medium=cloud-development&utm_campaign=terraform&utm_content=aws-transfer-family-terraform
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Transfer Family in action: Hosting files with sFTP and Terraform (real case study)

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

## 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
- [AWS Transfer Family in action: Hosting files with sFTP and Terraform (real case study)](https://blog.devandreacarratta.it/en/aws-transfer-family-terraform/?utm_source=github&utm_medium=cloud-development&utm_campaign=terraform&utm_content=aws-transfer-family-terraform)
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. 💸