Quick Start

Get your AS2 gateway running in 15 minutes with a single command.

Prerequisites

Before you begin, ensure you have:

  • An AWS Account with appropriate permissions
  • AWS CLI installed and configured
  • Node.js 18+ installed (for CDK)
AWS CLI Setup

If you haven't configured AWS CLI, run aws configure and enter your Access Key ID, Secret Access Key, and preferred region.

Installation

Open AWS CloudShell in your AWS Console and run the one-command installer:

AWS CloudShell

This will automatically:

  • Clone the repository
  • Install dependencies
  • Bootstrap CDK (if needed)
  • Deploy all stacks to your AWS account
Deployment Time

The deployment typically completes in 10-15 minutes. You'll see progress output as each resource is created.

First-Time Setup

After logging in, complete these steps to start exchanging messages:

1

Create AS2 Instance

Navigate to AS2 Instances and click + Create AS2 Instance. Enter your company's AS2 ID, name, alias, and email address. Learn more

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
Create AS2 Instance
Save
On Off
2

Add Trading Partner

Go to Partner tab and click + Create Partner. Enter your trading partner's AS2 ID, name, alias, and email. Learn more

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
Create Partner
Save
On Off
3

Create Certificate

In the Certificate tab, click + Create Cert. Upload your partner's public certificate for encryption. Importing your own certificate is optional — if you don't have one, ServerlessAS2 will automatically generate one for you. Learn more

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
Create Certificate
Save
Drop certificate file here or click to upload
Optional - only needed for your own certificates
4

Create Partnership

Go to AS2 Instances and click on your instance to edit it. In the Related Partnership section, click the + button to create a new partnership. Learn more about partnerships.

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
Edit AS2 Instance
Save
my_as2_id: mycompany
my_name: My Company Inc
my_as2_alias: mycompany
my_email: edi@mycompany.com
Related Partnership
+
Partner
AS2 URL
Status
amazon
https://as2.amazon.com/receive
Active
5

Send Test File

Navigate to Send File, select your partnership, upload an EDI file, and click Send File to transmit your first message. Learn more

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
Send EDI File
Select Partnership
mycompany → amazon
Upload EDI File
order_850.edi
2.4 KB
6

Track Your Message

Check the TrackLog to monitor your message status. You'll see "MDN Saved" when your partner successfully receives and acknowledges the message. Learn more

Serverless AS2
AS2 Instances Partner PartnerShip Certificate TrackLog Send File
user@example.com
status:
ID
MyAS2 ID
Partner ID
Status
Create Date
Operation
55a945fc-f29f-432f...
mycompany
amazon
MDN Saved
2026-04-11 11:39
Copy EDICopy MDN
AWS Costs

While Serverless AS2 is open source, AWS charges for resource usage. Low-volume usage typically stays within the AWS Free Tier ($0/month). See our cost estimator for projected costs.

Next Steps