I am trying to host a static website on an EC2 instance which takes file as an input from the user and stores it in a bucket in S3. How can I achieve it ? Can anybody help me with the steps?
This is of course popular, although you are responsible for installing any software on the instance for hosting including any necessary web hosting software (such as Nginx).
You have said you're experienced with Angular so feel free to take a look at this tutorial which covers the basics.
For the frontend for putting an object you can use the JavaScript SDK using either putObject or upload.
For credentials of a frontend only application you would configure a cognito user pool to generate the temporary credentials and then use them with the SDK.