Transform EDI to JSON using AWS B2B Data Interchange

Input bucket → AWS B2B Data Interchange → Output bucket

This sample project demonstrates how AWS B2B Data Interchange can transform EDI Files into JSON.

An X12 EDI file is uploaded into the input Amazon S3 bucket.
File upload action triggers AWS B2B Data Interchange Transformers to transform the X12 EDI file into JSON format.
The transformed JSON file is uploaded into the output Amazon S3 bucket.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/s3-b2bi-s3

Deploy

sam deploy -g -t template-part1.yamlsam deploy -g -t template-part2.yaml


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the Amazon S3 input bucket content: aws s3 rm s3://{EDI214InputBucketName} --recursive --region {my-region}
Delete the Amazon S3 output bucket content: aws s3 rm s3://{EDI214OutputBucketName} --recursive --region {my-region}
Delete the stack1: sam delete --stack-name {b2bi-stack2}.
Delete the stack1: sam delete --stack-name {b2bi-stack1}.

Created by:

Biswanath Mukherjee

Biswanath Mukherjee

Sr. Solutions Architect working at AWS India.

Follow on LinkedIn