Lesson 3 of 4 Hybrid Storage and Data Transfer

Receiving Partner Files with AWS Transfer Family

This lesson explains how AWS Transfer Family provides managed SFTP, FTPS, FTP and AS2 endpoints that store files in S3 or EFS, so partners keep their existing file transfer tools.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how Transfer Family servers work.
  • Identify the supported protocols.
  • Explain how managed workflows process uploads.

How it works

AWS Transfer Family provides managed file transfer servers for SFTP, FTPS, FTP and AS2, which partners and legacy systems already use. Each server is highly available and scales automatically, with a public endpoint or an endpoint inside a VPC. Files land in Amazon S3 or Amazon EFS, where other services can process them.

Users can be defined in the service's own user store, come from Active Directory, or be authenticated by a custom identity provider implemented with Lambda or API Gateway. Each user maps to an IAM role, and scope-down policies restrict users to their own folders, so partners cannot see each other's files.

True or false

Transfer Family

Exam skills 3.5.3 · 1.3.6

Check how AWS Transfer Family works.

Log in to try this activity Interactive activities are free with an account.

Protocols

AWS Transfer Family provides managed file transfer endpoints that store files in S3 or EFS, so partners can keep using their existing file transfer tools. SFTP, which runs over SSH, is the usual choice for both partner and internal transfers. FTPS adds TLS encryption to FTP for older clients that support it. Plain FTP is unencrypted, so it is supported only on endpoints inside a VPC. AS2 is a protocol for business-to-business exchanges, such as electronic data interchange (EDI) documents, with signed receipts. The following table summarises the protocols.

ProtocolTypical use
SFTPMost partner and internal transfers
FTPSLegacy clients needing TLS
FTPUnencrypted; only inside a VPC
AS2Business-to-business exchanges, such as EDI
Match the pairs

Transfer Family protocols

Exam skills 3.5.3

Match each requirement with the Transfer Family protocol that fits.

Log in to try this activity Interactive activities are free with an account.

Processing uploads

Files uploaded by partners usually need processing. Managed workflows run steps automatically after each upload, such as copying the file to another location, tagging it, decrypting PGP-encrypted files or invoking a Lambda function for custom validation, with exception-handling steps if a step fails. For other processing, S3 event notifications on the destination bucket can start any workflow, for example an AWS Glue job that loads the partner's file into a data lake.

The following diagram shows an upload passing through a managed workflow.

Processing partner uploads with AWS Transfer Family. Partners upload over SFTP to a managed endpoint that stores files in Amazon S3. A managed workflow then runs steps after each upload, such as copying, tagging, PGP decryption and a Lambda function for validation, with exception-handling steps if one fails. S3 event notifications can start other processing, such as an AWS Glue job.
The steps are illustrative. The partner keeps using the same SFTP client and host name.
Worked example

Replacing a self-managed SFTP server

A retailer receives daily inventory files from 200 suppliers on an SFTP server it maintains itself. The server is a single point of failure, and files must be processed as soon as they arrive.

RequirementDesign
Suppliers keep their SFTP clients and host nameTransfer Family SFTP server with a custom domain
Each supplier sees only its own folderLogical directories and a scope-down policy per user
Files processed on arrivalFiles land in S3; an event notification starts processing
High availabilityManaged service across several AZs

The retailer no longer patches or monitors a server, and the files are in S3 ready for analytics.

Check yourself

How can files uploaded through Transfer Family be processed automatically?

Show answer

With managed workflows that run steps such as copying, tagging, decrypting or invoking a Lambda function after each upload.

Exam Tips

Remember for the exam

  • When external partners exchange files over SFTP, use Transfer Family.
  • When partners must keep using SFTP clients, use Transfer Family storing files in S3.
  • To authenticate SFTP users against Active Directory or a custom identity provider, use Transfer Family identity options.
  • To process files automatically after upload, use Transfer Family managed workflows.