This is a demo site that when configured with Amplify will allow any user to upload a file to an s3 bucket.
Security: ANYONE CAN UPLOAD - there are no permission checks on who can upload a file
- AWS Account
- Amplify CLI installed
- AWS Profile setup in ./aws/config
Will have you name the project and set the environment name (prod, dev, etc.).
It will also have you select a profile which Amplify will use to build the project.
If you do not select a profile it will take inputs for programatic AWS credentials.
Select storage for images, files, and audio. (S3)
A message will respond saying you cannot add storage without first adding authentication first
Select 'Y' to adding authentication and select defaults for all auth categories
Amplify will ask who you want to be able to access the s3 bucket, select authenticated users and guests
This is what allows anyone to use the site.
In permissions give both authenticated users and guests permission to create/update. DO NOT GIVE ANY OTHER PERMISSIONS
Select the option and includes cloudfront. Select the default for any additional requests.
Pushes local resources to the cloud
Within 5-10 minutes a URL will be display where the project can be found and used.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!