35.2 deploy MySQL into AWS RDS - WITHOUT public access (#35, #32)

This commit is contained in:
Art
2021-09-25 19:00:21 +03:00
parent 72ff6e4c4d
commit f6859d263b

View File

@ -237,4 +237,19 @@ WantedBy=multi-user.target
- allow port 3306 from everywhere (for testing purposes) - allow port 3306 from everywhere (for testing purposes)
5. Attach SG MySQLFromEverywheere to DB instance 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"`