Deploying an application to Amplify without a Git repository
Manual deployments allows you to publish your web app with Amplify Hosting without connecting a Git provider. You can drag and drop a folder from your desktop and host your site in seconds. Alternatively, you can reference assets in an Amazon S3 bucket or specify a public URL to the location where your files are stored.
For Amazon S3, you can also set up AWS Lambda triggers to update your site each time new assets
are uploaded. See the Deploy files stored on Amazon S3, Dropbox, or your Desktop to the AWS Amplify
console
Amplify Hosting does not support manual deploys for server-side rendered (SSR) apps. For more information, see Deploying server-side rendered applications with Amplify Hosting.
Drag and drop manual deploy
To manually deploy an app using drag and drop
-
Sign in to the AWS Management Console and open the Amplify console
. -
In the upper right corner, choose Create new app.
-
On the Start building with Amplify page, choose Deploy without Git. Then, choose Next.
-
On the Start a manual deployment page, for App name, enter the name of your app.
-
For Branch name, enter a meaningful name, such as
development
orproduction
. -
For Method, choose Drag and drop.
-
Either drag and drop a folder from your desktop onto the drop zone or use Choose .zip folder to select the file from your computer. The file that you drag and drop or select must be a a zipped folder that contains the contents of your build output.
-
Choose Save and deploy.
Amazon S3 or URL manual deploy
Note
If you are deploying a static website from S3, the following procedure requires that you upload a zipped folder with the contents of your build output to your S3 bucket. We recommend that you deploy a static website directly from S3 using the bucket name and prefix. For more information about this simplified process, see Deploying a static website to Amplify from an Amazon S3 bucket.
To manually deploy an app from Amazon S3 or a public URL
-
Sign in to the AWS Management Console and open the Amplify console
. -
In the upper right corner, choose Create new app.
-
On the Start building with Amplify page, choose Deploy without Git. Then, choose Next.
-
On the Start a manual deployment page, for App name, enter the name of your app.
-
For Branch name, enter a meaningful name, such as
development
orproduction
. -
For Method, choose either Amazon S3 or Any URL.
-
The procedure for uploading your files depends on the upload method.
-
Amazon S3
-
For S3 location of objects to host, choose Browse S3. Then, select the name of the Amazon S3 bucket from the list. Access control lists (ACLs) must be enabled for the bucket you select. For more information, see Troubleshooting Amazon S3 bucket access.
-
Select the name of the .zip file to deploy.
-
Choose Choose prefix.
-
-
Any URL
-
For Resource URL, enter the URL to the .zip file to deploy.
-
-
-
Choose Save and deploy.
Note
When you create the zipped folder, make sure you zip the contents of your build output and not the top level folder. For example, if your build output generates a folder named “build” or “public”, first navigate into that folder, select all of the contents, and zip it from there. If you do not do this, you will see an “Access Denied” error because the site's root directory will not be initialized properly.
Troubleshooting Amazon S3 bucket access
When you create an Amazon S3 bucket, you use its Amazon S3 Object Ownership setting to control whether access control lists (ACLs) are enabled or disabled for the bucket. To manually deploy an app to Amplify from an Amazon S3 bucket, ACLs must be enabled on the bucket.
If you get an AccessControlList
error when you deploy from an Amazon S3
bucket, the bucket was created with ACLs disabled and you must enable them in the Amazon S3
console. For instructions, see Setting Object Ownership on an existing bucket in the
Amazon Simple Storage Service User Guide.