Search code examples
amazon-web-servicescicd

Creating a aws endpoint to accept json format with store it to DS


Create an endpoint in AWS where data can be sent in a JSON format which can be stored to a data store.

I think i can write a terraform code to create a Amazon API Gateway, lambda fuction to accept json format and store in DS.

What should i do to build a CI CD around this? Any idea on this..


Solution

  • There are many ways - for an automated way to provision infrastructure during your CI/CD pipeline, use Infrastructure as Code.

    You can use Terraform, CloudFormation YAML/JSON, AWS Cloud Development Kit (CDK), Serverless Framework (depending on your data store) etc.

    If all you need is a Lambda, API Gateway and a serverless data store like DynamoDB, the quickest way to get set up in my opinion would be the Serverless Framework, however, all are viable solutions.