Skip to content

Commit 0683551

Browse files
author
Tom McCarthy
authored
feat: update readme to use amplify 1-click deployment (aws-samples#46)
1 parent 62e9349 commit 0683551

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -144,25 +144,17 @@ make backend-delete
144144
## Option 2 - Automatically deploy backend and frontend using Amplify Console
145145

146146

147-
[Create a new personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
148-
on GitHub.
149-
Amplify will need this to access your repository. The token will need the “repo” OAuth scope.
150-
151-
Set environment variables:
152-
```bash
153-
export GITHUB_REPO=https://github.com/<your-github-username>/aws-serverless-shopping-cart
154-
export GITHUB_BRANCH=master # Or whichever branch you wish to track
155-
export GITHUB_OAUTH_TOKEN=<github personal access token>
156-
```
147+
[![One-click deployment](https://oneclick.amplifyapp.com/button.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/aws-samples/aws-serverless-shopping-cart)
157148

158-
Create the Amplify console application, which will provide basic continuous deployment for your Github repository:
159-
``` bash
160-
make amplify-deploy # Creates amplify console application
161-
```
149+
1) Use **1-click deployment** button above, and continue by clicking "Connect to Github"
150+
2) If you don't have an IAM Service Role with admin permissions, select "Create new role". Otherwise proceed to step 5)
151+
3) Select "Amplify" from the drop-down, and select "Amplify - Backend Deployment", then click "Next".
152+
4) Click "Next" again, then give the role a name and click "Create role"
153+
5) In the Amplify console and select the role you created, then click "Save and deploy"
154+
6) Amplify Console will fork this repository into your GitHub account and deploy it for you
155+
7) You should now be able to see your app being deployed in the [Amplify Console](https://console.aws.amazon.com/amplify/home)
156+
8) Within your new app in Amplify Console, wait for deployment to complete (this should take approximately 12 minutes for the first deploy)
162157

163-
Go to the [AWS Amplify console](https://console.aws.amazon.com/amplify/home), then click on "CartApp" and "run build".
164-
This will deploy both the frontend and backend:
165-
![Amplify Console](./images/AmplifyConsoleScreen.png)
166158

167159
### Clean Up
168160
Delete the CloudFormation stacks created by this project. One is named "CartApp", and then there are 3 with names

0 commit comments

Comments
 (0)