Uploading XML file from Postman to S3 bucket through API Gateway with Cognito Authorizers using Lambda

Seeni Lathasree Reddy
Jul 10 · 5 min read

Create a New REST API in API Gateway

Create a Cognito User Pool Authorizer

Deploy our API

Writing Python Code for Storing XML file in S3 bucket in Lambda

Create a Lambda Function in the AWS Console

Uploading xml file to S3 Bucket via API using postman and Lambda

Checking authorization using credentials


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade