You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,28 @@ then start the application locally using the following command:
12
12
13
13
## Deploying to AWS
14
14
15
-
In order to deploy to AWS, you have to take the following steps:
15
+
To deploy to AWS, there are two options:
16
+
17
+
- Manual deploy
18
+
- Automated deploy (via Github Actions)
19
+
20
+
Both deployment strategies require configuring your AWS stack with the provided `aws-stack.yaml` file.
21
+
22
+
Required steps:
23
+
16
24
1. Deploy the CloudFormation Template from the project (`react-cors-spa-stack.yaml`) using AWS CLI or AWS Console
17
-
2. Once your stack is deployed, from the "Output" tab, identify the S3 "Bucket" name
18
-
3. Build the (using `yarn build`) app for distribution
19
-
4. Upload the content of the `build` folder into the S3 bucket identified at step 2
20
-
5. Access the application through the CloudFront distribution created at step 1
25
+
2. Once your stack is deployed, from the "Output" tab, identify the "APIEndpoint" URL as well as the S3 "Bucket" name
26
+
27
+
From here, manual deployment steps:
28
+
29
+
1. Build the (using `yarn build`) app for distribution
30
+
2. Upload the content of the `build` folder into the S3 bucket identified at step 2
31
+
3. Access the application through the CloudFront distribution created at step 1
32
+
33
+
For automated deploy via Github Actions:
34
+
35
+
1. Add a new secret to your repository named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` with the credentials of an IAM user with permissions to deploy CloudFormation stacks and upload content to S3.
36
+
2. Uncomment the last step in `.github/workflows/deploy.yml`. This will trigger a deployment to AWS every time a new commit is pushed to the `main` branch.
0 commit comments