Store input field text value inside s3 bucket

0

Is it possible to store input field text value (html) inside s3 which will be converted to txt file when uploads?

asked 2 years ago183 views
1 Answer
1

Hello!

If I am not mistaken, you're trying to upload an object to S3 (.html object) and convert the file to a text file (.txt) once it uploads. In order to complete this, please follow these steps:

  • [1] Create an Amazon S3 bucket.
  • [2] Create a Lambda function with code that converts the file from .html to .txt
  • [3] Configure a Lambda trigger that invokes your function when objects are uploaded to your bucket.
  • [4] Test your function, first with a dummy event, and then using the trigger.

This is one method of completing your desired task, however there are other methods that could amount to the same result. Please refer to the following resource(s):

profile pictureAWS
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions