Integrate your REST API with AWS Services using API Gateway Service Proxy



Watch my YouTube video for explanation 



Please look into the class notes here for your references:


api gateway service proxy, api gateway proxy, api gateway dynamo,  api gateway dynamodb, dynamodb api, 
aws api gateway dynamodb, dynamodb api gateway, aws cloud, aws service cloud, aws tutorial, aws training

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html

https://grey-water-550013.postman.co/workspace/3116b18c-69cb-48f5-82de-2cbed72724a0/request/create?requestId=17abc923-b907-435d-9de1-e571cb6a1b4d

1.  DynamoDB Table    employee

     employee (empid as partition key, deptid as sort key)

2.  API Gateway Endpoint

      
  
  *create API -
              Create Resource, 
  Create Method , 
  Configure Method for post operation to DynamoDB service,
  Test the Method using JSON payload required 
      Deploy the Method
  Get the URL 
  Use Postman to post the data payload (JSON payload) to API gateway
  Receive the Response
  
  
  
3.  IAM Role 
     - policy
- trust relationship
 
 
 
{
    "TableName": "employee",
    "Item": {
        "empid": {
            "S": "1"
        },
        "deptid": {
            "S": "HR1"
        }
}
}
mapping tempplate
{
    "TableName": "employee",
    "Item": {
    
    "empid": {
             "S": "$context.requestId"
        },
    "deptid": {
            "S": "$input.path('$.deptid')"
        },
    "site": {
            "S": "$input.path('$.site')"
        }
}
}
Sample Input
{
"deptid":"admin1",
"site":"Bangaluru"
}



Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel 

Click DataPundit

Comments

Popular posts from this blog

Abinitio Interview Question # 1 - Write Multiple Files in Abinitio

Next In Sequence in ABinitio | How next_in_sequence() works in MFS