Amazon S3 integration with AS2 Protocol | Aayu Technologies
Home Blog Amazon S3 integration with AS2 Protocol

Amazon S3 integration with AS2 Protocol

MFT Gateway supports Amazon S3 integration with AS2 protocol to customize message workflows to providing higher security and scalability

13 Jul 2020 by Sudarshana Lakmal

Why does your business need AS2 Protocol?

  • Enables transactions with large enterprises that require AS2. Several large enterprises like Walmart, Amazon, Target, and Lowe’s now require trading partners to transact with them via EDI (electronic data interchange) and AS2.
  • Supports digital signatures, encryption, and certificate-based authentication.
  • Supports electronic receipts and many more.

Why do you need S3 integration?

Amazon Simple Storage Service, or simply Amazon S3, is a secured and highly scalable data storage service offered as part of Amazon Web Services. With its simple and intuitive interface, S3 makes the task of storing and retrieving data from anywhere on the web relatively easy.

  1. Automated Integration S3 is easy to integrate with other services available on AWS. You can directly embed S3 with security platforms such as KMS or IAM, alerting services such as Event Notifications, and computing platforms such as Lambda.
  2. Simple to Use S3 is a cost-effective platform to store data, and transfer it into and out of third-party networks — over standard HTTP/S connections.
  3. Cloud Data Migration S3 provides a platform for you to store and transfer data in and out of the cloud, and process it in-place using native cloud applications, systems and services.

Why go for AS2 with S3 integration?

  • Connect AS2 flow with your other B2B platforms easily.
  • Customize your AS2 flow with the use of AWS services.
  • No need to manage your own file storage, so the cost will be reduced.
  • High security, scalability, reliability and compliance — with zero effort on your end.

MFT Gateway

MFT Gateway is the world’s first Serverless Managed File Transfer Gateway (MFT) implemented on Amazon Web Services (AWS), which currently offers AS2 protocol to provide secure, reliable, and faster communication for B2B enterprises.

MFT Gateway is based on AWS Serverless technologies such as S3, API Gateway, DynamoDB, Cognito and Lambda, which offers much more possibilities for integration moving forward — especially with the stability and availability of the AWS platform behind it, and without the customers having to manage and spend on traditional servers, software and management personnel.

How can I enable S3 integration on MFT Gateway?

That’s just a click of a button. Really….? Enable the S3 integration — by just clicking the “Get Credentials” Button.

S3 AS2

Then you will get an AWS key pair in a CSV file (Access Key and Secret Key) with access to your dedicated S3 bucket inside MFT Gateway.

S3 AS2

Now you can send a message and list your received/sent attachments using the provided key pair.

Send a message

  • Send Directory (S3 object prefix)
  • Upload an attachment from local directory to send directory using AWS CLI
aws s3 cp <local-file> s3://<station-AS2-id>/<partner-AS2-id>/

List and download received attachments

  • Folder structure (S3 object prefix)
  • List attachments in inbox
aws s3 ls s3://<station-AS2-id>/<partner-AS2-id>/inbox/
  • Download attachment from inbox to local directory
aws s3 cp s3://<station-AS2-id>/<partner-AS2-id>/inbox/<timestamp-random-number>/<attachment-name> <local-path>

List and download sent attachments

  • Outbox folder structure (S3 object prefix)
  • List attachments in outbox
aws s3 ls s3://<station-AS2-id>/<partner-AS2-id>/outbox/
  • Download attachment from outbox to local directory
aws s3 cp s3://<station-AS2-id>/<partner-AS2-id>/outbox/<timestamp-random-number>/<attachment-name> <local-path>

These are the most common S3 operations associated with AS2 messaging. But with the use of the S3 integration, you can customize both receiving and sending flow as you want. For example, if you want to convert all received files to a different format, you can implement a Lambda function and configure it to monitor the received-attachments S3 path prefix. Of course, that is just one of the many things that you can do using S3 integration.

And for the more conventional masses, we are also working on direct SFTP integration support on MFT Gateway. It will be available very soon, along with a REST API, and many more goodies — stay tuned!