AWS Transfer Family managed file transfer server management. This implementation covers the management-plane API for server and user lifecycle, SSH public key management, and tagging. Actual SFTP/FTP protocol handling is out of scope — server state is simulated in-process.
Server IDs have the format s- followed by 17 lowercase alphanumeric characters (e.g. s-01234567890abcdef).
Example Usage
export AWS_ENDPOINT_URL=http://localhost:4566
# Create a server
aws transfer create-server \
--protocols SFTP \
--endpoint-type PUBLIC
# List servers
aws transfer list-servers
# Stop a server (must be ONLINE)
aws transfer stop-server --server-id s-01234567890abcdef
# Start a server (must be OFFLINE)
aws transfer start-server --server-id s-01234567890abcdef
# Create a user
aws transfer create-user \
--server-id s-01234567890abcdef \
--user-name alice \
--role arn:aws:iam::000000000000:role/transfer-role \
--home-directory /uploads
# Import an SSH public key
aws transfer import-ssh-public-key \
--server-id s-01234567890abcdef \
--user-name alice \
--ssh-public-key-body "ssh-rsa AAAA..."
# List users on a server
aws transfer list-users --server-id s-01234567890abcdef
# Tag a server
aws transfer tag-resource \
--arn arn:aws:transfer:us-east-1:000000000000:server/s-01234567890abcdef \
--tags Key=env,Value=dev
# Delete a user then the server
aws transfer delete-user \
--server-id s-01234567890abcdef \
--user-name alice
aws transfer stop-server --server-id s-01234567890abcdef
aws transfer delete-server --server-id s-01234567890abcdef
Notes
Phase 1 covers the management-plane API only. Data-plane SFTP connectivity (actual file transfer) is not emulated.
CloudFormation provisions AWS::Transfer::Server through the management-plane service. Ref returns the server ARN; Fn::GetAtt exposes Arn, ServerId, and State. AS2 managed egress IP allocation is not modeled, so As2ServiceManagedEgressIpAddresses is not exposed. CloudFormation also provisions AWS::Transfer::User: Ref returns the user ARN, Fn::GetAtt exposes Arn (the only attribute the registry schema declares), Policy and PosixProfile fail explicitly, and a ServerId or UserName change replaces the user. Server properties not supported by the management-plane implementation fail explicitly. Changing Domain requires replacement, which is not yet supported. IdentityProviderType changes are also not supported by Floci, although AWS supports updating that property without replacement.
Server EndpointType defaults to PUBLIC. The State field transitions between ONLINE and OFFLINE via StartServer / StopServer.
SSH key bodies are stored and returned as-is; no cryptographic validation is performed.