From 962393ff4eb0e59714147dce6feb05fdf2ec3898 Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 26 Sep 2021 10:26:51 +0300 Subject: [PATCH] 34.2. Allow Docker EC2 to Access RDS (#34, #32) --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78cf594..ac45627 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ WantedBy=multi-user.target - `[Service]` - `Environment="SPRING_PROFILES_ACTIVE=aws-rds"` -#### Create EC2 instance for Docker +#### 34.1 Create EC2 instance for Docker - Create EC2 instance - User Data: @@ -275,5 +275,12 @@ systemctl restart docker - Associate `docker-elastic-ip` with `docker-ec2` - In Route 53 create record `dockerapp` with `docker-ec2` public IP +#### 34.2 Allow Docker EC2 to Access RDS - \ No newline at end of file +- Create `mysql-vpc-security-group` + - Allow port 3306 from `docker-security-group` +- Attach SG to database in RDS `portal-db` + + + + \ No newline at end of file