From f6859d263bfeebba6bbefb28dae3b01fa73da06d Mon Sep 17 00:00:00 2001 From: Art Date: Sat, 25 Sep 2021 19:00:21 +0300 Subject: [PATCH] 35.2 deploy MySQL into AWS RDS - WITHOUT public access (#35, #32) --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index f15f6d6..830e23a 100644 --- a/README.md +++ b/README.md @@ -237,4 +237,19 @@ WantedBy=multi-user.target - allow port 3306 from everywhere (for testing purposes) 5. Attach SG MySQLFromEverywheere to DB instance +##### 35.2 deploy MySQL into AWS RDS - WITHOUT public access + +1. Detach SG MySQLFromEverywheere +2. To access DB from EC2 `support-portal` + - attach `default` SG to EC2 (DB has `default` SG too) +3. Delete SG MySQLFromEverywheere +4. Run backend app with new profile (for testing) + - `java -jar -Dspring.profiles.active=aws-rds` +5. Change environment variable (for service) + - `sudo systemctl edit supportapi` + - Content: + - `[Service]` + - `Environment="SPRING_PROFILES_ACTIVE=aws-rds"` + + \ No newline at end of file