Amazon Transfer Family for AS2
Applicability Statement 2 (AS2) is an RFC-defined file-transmission specification that includes strong message protection and verification mechanisms. The AS2 protocol is critical to workflows with compliance requirements that rely on having data protection and security features built into the protocol.
Note
AS2 for Transfer Family is Drummond certified
Customers in industries such as retail, life sciences, manufacturing, financial services, and utilities that rely on AS2 for supply chain, logistics, and payments workflows can use Amazon Transfer Family AS2 endpoints to securely transact with their business partners. The transacted data is natively accessible in Amazon for processing, analysis, and machine learning. This data is also available for integrations with enterprise resource planning (ERP) and customer relationship management (CRM) systems that run on Amazon. With AS2, customers can run their business-to-business (B2B) transactions at scale in Amazon while maintaining existing business partner integrations and compliance.
If you are a Transfer Family customer who wants to exchange files with a partner who has an AS2-enabled server, the setup involves generating one public-private key pair for encryption and another for signing and exchanging the public keys with the partner.
Transfer Family provides a workshop that you can attend, in which you can
configure a Transfer Family endpoint with AS2 enabled, and a Transfer Family AS2 connector.
You can view the details for this workshop
here
Protecting an AS2 payload in transit typically involves the use of Cryptographic Message Syntax (CMS) and commonly uses encryption and a digital signature to provide data protection and peer authentication. A signed Message Disposition Notice (MDN) response payload provides verification (non-repudiation) that a message was received and successfully decrypted.
Transport of these CMS payloads and MDN responses occurs over HTTP.
Note
HTTPS AS2 server endpoints are not currently supported. TLS termination is currently the responsibility of the customer.
For a detailed, step-by-step walkthrough of setting up an Applicability Statement 2 (AS2) configuration, see the tutorial, Setting up an AS2 configuration.
The user guide provides instructions for each step in the process of configuring AS2 in Transfer Family.
AS2 use cases
If you are an Amazon Transfer Family customer who wants to exchange files with a partner who has an AS2-enabled server, the most complex part of the setup involves generating one public-private key pair for encryption and another for signing and exchanging the public keys with the partner.

Consider the following variations for using Amazon Transfer Family with AS2.
Note
Trading partner is the partner associated with that partner profile.
All mentions of MDN in the following table assume signed MDNs.
Inbound-only use cases
|
Outbound-only use cases
|
Inbound and outbound use cases
|
AS2 CloudFormation templates
This topic provides information about Amazon CloudFormation templates that you can use to quickly deploy AS2 servers and configurations for Amazon Transfer Family. These templates automate the setup process and help you implement best practices for AS2 file transfers.
-
The basic AS2 template is described in Use a template to create a demo Transfer Family AS2 stack
-
The AS2 template for customizing HTTP headers is described in Customize HTTP headers for AS2 messages.
Customizing AS2 templates
You can customize the provided templates to meet your specific requirements:
-
Download the template from the S3 URL.
-
Modify the YAML code to adjust configurations such as:
-
Security settings and certificate configurations
-
Network architecture and VPC settings
-
Storage options and file handling
-
Monitoring and notification preferences
-
-
Upload your modified template to your own S3 bucket.
-
Deploy the customized template using the Amazon CloudFormation console or Amazon CLI.
Important
When customizing templates, ensure that you maintain the dependencies between resources and follow security best practices.
Testing your AS2 deployment
After deploying an AS2 server using a template, you can test the configuration:
-
Check the CloudFormation stack outputs for sample commands and endpoint information.
-
Use the Amazon CLI to send a test file:
aws s3api put-object --bucket
your-bucket-name
--key test.txt --body test.txt aws transfer start-file-transfer --connector-idyour-connector-id
--send-file-paths /your-bucket-name
/test.txt -
Verify file delivery in the destination S3 bucket.
-
Check CloudWatch logs for successful processing and MDN responses.
For more comprehensive testing, consider using third-party AS2 clients to send files to your Transfer Family AS2 server.
Best practices for AS2 template deployment
Follow these best practices when using AS2 CloudFormation templates:
- Security
-
Use strong certificates and rotate them regularly.
Implement least-privilege IAM policies.
Restrict network access using security groups.
- Reliability
-
Deploy across multiple Availability Zones.
Implement monitoring and alerting for failed transfers.
Set up automated retries for failed transfers.
- Performance
-
Choose appropriate instance types for your transfer volume.
Implement S3 lifecycle policies for efficient file management.
Monitor and optimize network configurations.
- Cost Optimization
-
Use auto-scaling for variable workloads.
Implement S3 storage classes for older files.
Monitor and adjust resources based on actual usage.