Question: Build a full - stack web application. Use free AWS cloud resources. System design: - Responsive UI ( use React JS ) with a text
Build a fullstack 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 S from the browser directly do not send the file content directly to Lambda, do no get credentials from Cognito
Save the inputs and S path in DynamoDB FileTable via API gateway and Lambda Function. use autogenerated id via nanoid
After the file is uploaded in S and added to DynamoDB, trigger a script run in a VMinstance EC via the DynamoDB event: Create a new VM automatically. Downlaod the script from S to the VM Upload the scripts to S via CDK or programatically as the InputFile Run the script in the VM Terminate the VM automatically.
Basic Requirements:
Use AWS CDK to manage AWS infrastructure
USE AWS SDK JavaScript V for Lambda
Do not put any AWS access key credentials in the code
No SSH and no hardcoded parameters
Txt file in S 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 S path in DynamoDB FileTabel, your system will create a new VM based on the event not a preprovisioned VM and trigger the script to run automatiicaly with error handling no sleep
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
