- Set up Terraform. For steps, see Terraform downloads (https://www.terraform.io/downloads.html).
-
Execute the below commands
$ terraform init $ terraform plan $ terraform apply –auto-approve
-
In AWS Console, Select “api-gateway”
-
Select “Stages” on the left pane
-
Click “dev” > “POST” (within the “/login” route)
-
Copy the invoke Url. A sample url will be like this - https://qvu8vlu0u4.execute-api.us-east-1.amazonaws.com/dev/login
-
Use REST API tool like Postman or Chrome based web extension like RestMan to post data to your endpoint
Sample Json Request:
{ "user_name": "pomelo", "email": "test@example.com" }
-
Output - You should see the output in both S3 bucket a. S3 – Navigate to the bucket created as part of the stack * Select the file and view the file from “Select From” sub tab . You should see something ingested stream got converted into parquet file. * Select the file and view the data