Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tulna07 committed Sep 23, 2024
1 parent 78ad4a4 commit dc595f5
Show file tree
Hide file tree
Showing 13 changed files with 98 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ pre : " <b> 10.2 </b> "

It migh take a while to create AWS RDS intances and the secret in AWS Secrets Manager.

**14.** Note down the **Endpoint** of the database server you have just created.

![00016](/images/10/2/00016.svg?featherlight=false&width=100pc)

**15.** Go to [AWS Secrets Manager console](https://console.aws.amazon.com/secretsmanager/).

**16.** Note down the **Secret name**, you might need it later!

![00017](/images/10/2/00017.svg?featherlight=false&width=100pc)





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Discover how to efficiently store and manage information in variables within Git
| Name | Value |
|---|---|
| `PROJECT` | `awsome-books` |
| `ROLE_TO_ASSUME` | enter the role arn you have created in [4.3.1 Create GitHub Actions Role](4-preparation/3-create-iam-roles/1-create-github-actions-role) |
| `ROLE_TO_ASSUME` | enter the role ARN you have created in step **18** in [4.3.1 Create GitHub Actions Role](4-preparation/3-create-iam-roles/1-create-github-actions-role) |
| `JAVA_VERSION` | `17` |
| `JAVA_DISTRIBUTION` | `temurin` |
| `ECS_CLUSTER` | `fcj` |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "AWS CodeDeploy Notification To Slack"
date : "`r Sys.Date()`"
weight : 1
chapter : false
pre : " <b> 15.1 </b> "
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "GitHub Actions Notification To Slack"
date : "`r Sys.Date()`"
weight : 2
chapter : false
pre : " <b> 15.2 </b> "
---
7 changes: 7 additions & 0 deletions content/15-Set-Up-Slack-Notifications/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "Set Up Slack Notifications"
date : "`r Sys.Date()`"
weight : 15
chapter : false
pre : " <b> 15. </b> "
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title : "Configure Database Credentials"
date : "`r Sys.Date()`"
weight : 1
chapter : false
pre : " <b> 16.1 </b> "
---

**1.** Make sure you are in the **awsome-books** local repository.

```git
cd path/to/awsome-books
```

**2.** Create and switch to another branch for configuration.

```git
git checkout -b "config-db"
```

**2.** In the *appspec.yml* file, replace the value **\<YOUR-CONTAINER-NAME\>** with `awsome-books` and **\<YOUR-CONTAINER-PORT\>** with `8080` using the command line.

```git
sed -i 's/<YOUR-CONTAINER-NAME>/awsome-books/g' appspec.yml && sed -i 's/<YOUR-CONTAINER-PORT>/8080/g' appspec.yml
```


**3.** In the *src/main/resources/application-prod.yml* file, update **\<YOUR-AWS-SECRECTS-MANAGER-NAME\>** with **\<AWS-SECRECTS-MANAGER-NAME\>** which is the value you recorded in step **14** of [10.2 Create AWS RDS Multi AZ](10-create-aws-rds-resources/2-create-aws-rds-multi-az), and replace **\<YOUR-AWS-RDS-DB-URL\>** with **\<AWS-RDS-DB-URL\>** which is the value noted in step **16** of the same section, using the command line.

```git
sed -i 's/<YOUR-AWS-SECRECTS-MANAGER-NAME>/<AWS-SECRECTS-MANAGER-NAME>/g' src/main/resources/application-prod.yml && sed -i 's/<YOUR-AWS-RDS-DB-URL>/<AWS-RDS-DB-URL>/g' src/main/resources/application-prod.yml
```

**4.** Make another commit and push to the remote corresponding branch.

```git
git add . && git commit -m "configure database credentials" && git push --set-upstream origin config-db
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "Your First Release Workflow Execution"
date : "`r Sys.Date()`"
weight : 2
chapter : false
pre : " <b> 16.2 </b> "
---
7 changes: 7 additions & 0 deletions content/16-Your-First-Release-Workflow-Executions/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "Your First Release Workflow Executions"
date : "`r Sys.Date()`"
weight : 16
chapter : false
pre : " <b> 16. </b> "
---
Empty file.
2 changes: 1 addition & 1 deletion content/4-Preparation/2-Create-Slack-Channels/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ Click **Skip Step**.

You finally got 5 private Slack channels created.

![00013](/images/4/2/00013.svg?featherlight=false&width=15pc)
![00013](/images/4/2/00013.svg?featherlight=false&width=18pc)
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pre : " <b> 4.4.4 </b> "
![0002](/images/4/4/4/0002.svg?featherlight=false&width=100pc)

**4.** In the **Services** section,
- Filter with `ecr.dkr` value.
- Filter with value `ecr.dkr`.
- Choose **com.amazonaws.us-east-1.ecr.dkr**.

![0003](/images/4/4/4/0003.svg?featherlight=false&width=100pc)
Expand Down Expand Up @@ -106,7 +106,7 @@ pre : " <b> 4.4.4 </b> "
![00010](/images/4/4/4/0009.svg?featherlight=false&width=100pc)

**4.** In the **Services** section,
- Filter with `ecr.api` value.
- Filter with value `ecr.api`.
- Choose **com.amazonaws.us-east-1.ecr.api**.

![00011](/images/4/4/4/00010.svg?featherlight=false&width=100pc)
Expand Down Expand Up @@ -189,7 +189,7 @@ pre : " <b> 4.4.4 </b> "
![00018](/images/4/4/4/00011.svg?featherlight=false&width=100pc)

**4.** In the **Services** section,
- Filter with `gateway` type.
- Filter with type `gateway`.
- Choose **com.amazonaws.us-east-1.s3**.

![00019](/images/4/4/4/00012.svg?featherlight=false&width=100pc)
Expand Down Expand Up @@ -244,7 +244,7 @@ pre : " <b> 4.4.4 </b> "
![00025](/images/4/4/4/00017.svg?featherlight=false&width=100pc)

**4.** In the **Services** section,
- Filter with `secretsmanager` value.
- Filter with value `secretsmanager`.
- Choose **com.amazonaws.us-east-1.secretsmanager**.

![00026](/images/4/4/4/00018.svg?featherlight=false&width=100pc)
Expand Down
4 changes: 4 additions & 0 deletions static/images/10/2/00016.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions static/images/10/2/00017.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc595f5

Please sign in to comment.