Storage
AWS Transfer Family
Managed SFTP/FTPS/FTP/AS2, File Transfer to S3/EFS
Tổng quan
AWS Transfer Family là dịch vụ fully managed cho phép transfer files vào/ra AWS storage (S3, EFS) sử dụng các protocols truyền thống:
Key benefits:
- ❌ Không cần quản lý SFTP/FTP servers
- ✅ Tích hợp native với S3/EFS
- ✅ Giữ nguyên workflows hiện tại (partners vẫn dùng SFTP như cũ)
- ✅ High availability, scalability tự động
Protocols hỗ trợ
| Protocol | Port | Mô tả | Use case |
|---|---|---|---|
| SFTP | 22 | SSH File Transfer Protocol | Phổ biến nhất, secure |
| FTPS | 21 | FTP over SSL/TLS | Legacy systems cần encryption |
| FTP | 21 | Plain FTP (unencrypted) | Legacy, không khuyến khích |
| AS2 | 443 | Applicability Statement 2 | EDI, B2B transactions |
SFTP vs FTPS vs FTP
Storage backends
Amazon S3
Features với S3:
- Map users đến specific prefixes (folders)
- Dùng S3 features: versioning, lifecycle, encryption
- Cross-region replication vẫn hoạt động
Amazon EFS
Features với EFS:
- POSIX permissions
- Shared access với EC2, Lambda, etc.
- NFS mount từ on-premises
Authentication
3 phương thức authentication
Custom Identity Provider example
Kiến trúc
Endpoint types
| Type | Accessibility | IP Address | Use case |
|---|---|---|---|
| Public | Internet | AWS-owned | Partners truy cập qua internet |
| VPC | VPC only | Private IP | Internal, on-premises via VPN/DX |
| VPC with Internet | Both | Elastic IP | Fixed IP cho firewall whitelist |
VPC Endpoint Architecture
Use Cases
| Use Case | Protocol | Storage |
|---|---|---|
| Partner data exchange | SFTP | S3 |
| EDI/B2B transactions | AS2 | S3 |
| Migrate FTP servers | FTPS/SFTP | S3/EFS |
| Data lake ingestion | SFTP | S3 |
| Shared file storage | SFTP | EFS |
Ví dụ: Partner uploads
Pricing
| Component | Cost |
|---|---|
| Endpoint | |
| Data transfer | $0.04/GB (upload), $0.04/GB (download) |
| AS2 messages | $0.005 per message traded |
Ví dụ:
- 1 SFTP server chạy 24/7 = ~$216/month
- Upload 100GB/month = $4
- Total: ~$220/month
⚠️ Lưu ý: Cost chính là endpoint hourly fee, data transfer thường nhỏ hơn
So sánh với các giải pháp khác
| Feature | Transfer Family | Self-managed SFTP | Third-party |
|---|---|---|---|
| Management | Fully managed | You manage EC2 | Varies |
| Scalability | Automatic | Manual | Varies |
| HA | Built-in (Multi-AZ) | You configure | Varies |
| S3 integration | Native | Custom | Custom |
| Cost | Pay per hour | EC2 + storage | Varies |
Khi nào dùng Transfer Family?
✅ Nên dùng:
- Có partners/clients cần SFTP/FTP
- Muốn migrate off self-managed FTP servers
- Cần tích hợp với S3/EFS
- Không muốn quản lý infrastructure
❌ Không nên dùng:
- Chỉ internal transfers (dùng S3 CLI/SDK)
- Low volume, occasional transfers (cost cao)
- Cần nhiều custom features (dùng self-managed)
Exam Tips
✅ Khi đề bài nói:
- "SFTP to S3"
- "Partners upload files"
- "Migrate FTP server to AWS"
- "B2B EDI transactions" (AS2)
→ Nghĩ đến AWS Transfer Family
Liên kết
- S3 - Storage backend chính
- EFS - Alternative storage backend
- VPC - VPC endpoints
- Lambda - Custom identity provider
- Direct Connect - On-premises connectivity