Question: Build a full - stack web application. Use free AWS cloud resources. System design: - Responsive UI ( use React JS ) with a text

Build a full-stack web application. Use free AWS cloud resources.
System design:
- Responsive UI (use React JS) with a text input and a file input and submit button
- Upload the input file to S3 from the browser directly (do not send the file content directly to Lambda, do no get credentials from Cognito
- Save the inputs and S3 path in DynamoDB FileTable via API gateway and Lambda Function. use auto-generated id via nanoid
- After the file is uploaded in S3 and added to DynamoDB, trigger a script run in a VMinstance (EC2) via the DynamoDB event: 1. Create a new VM automatically. 2. Downlaod the script from S3 to the VM (Upload the scripts to S3 via CDK or programatically as the InputFile).3. Run the script in the VM.4. Terminate the VM automatically.
Basic Requirements:
- Use AWS CDK to manage AWS infrastructure
- USE AWS SDK JavaScript V3 for Lambda
- Do not put any AWS access key / credentials in the code
- No SSH and no hard-coded parameters
- Txt file in S3 is not public. One user, one bucket. No shared bucket.
- Do not use any AWS amplify front end or backend resource
- After saving the inputs and S3 path in DynamoDB FileTabel, your system will create a new VM based on the event (not a pre-provisioned VM) and trigger the script to run automatiicaly with error handling (no sleep)
Build a full - stack web application. Use free

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!