Wordpress & WooCommerce 웹서버(EFS) & AWS RDS 구성 실습
1대 EC2(EFS)와 AWS RDS(DB)로 구성 : Web/PHP 인스턴스 + AWS RDS(DB)로 구성
- WebSrv2: 10.1.1.20 + EFS(/var/www/wordpress)
- AWS RDS
RDS => 데이터베이스 생성
클릭
MySQL 선택
프리티어
1 |
|
![스크린샷 2021-08-04 오후 11 11 07](https://user-images.githubusercontent.com/87232411/128199971-4f00a428-cf5e-4e18-86ee-a82f52f719d7.png)
t2.micro
선택
WP-VPC1
선택
default 제거 후 -> G3 라고 적혀있는 보안그룹 선택
추가구성
1 |
|
![스크린샷 2021-08-04 오후 11 12 36](https://user-images.githubusercontent.com/87232411/128199998-96ad225c-f288-4a11-ae5c-40beafeeeb4d.png)
데이터베이스 생성
클릭
생성 뒤 몇분 후 엔드포인트 확인 !
WebSrv2) EFS 확인 및 RDS 엔드포인트 주소 설정 및 확인
1 |
|
![스크린샷 2021-08-04 오후 11 28 29](https://user-images.githubusercontent.com/87232411/128200006-3a9739e9-3de4-4682-89c5-6ff1ab62d3ad.png)
![스크린샷 2021-08-04 오후 11 29 04](https://user-images.githubusercontent.com/87232411/128200009-989abf96-a1fb-4971-8da0-d9fb977c2008.png)
![스크린샷 2021-08-04 오후 11 29 14](https://user-images.githubusercontent.com/87232411/128200012-7426c0b0-908c-42e7-b35f-03a4a7e7b7a3.png)
![스크린샷 2021-08-04 오후 11 29 28](https://user-images.githubusercontent.com/87232411/128200014-e817b58a-1ccc-4a4d-9eaa-7a3bfe3a9418.png)
![스크린샷 2021-08-04 오후 11 29 41](https://user-images.githubusercontent.com/87232411/128200016-9b8d8176-b933-4a1f-9ecb-30b800f638fe.png)
실습 끝!
자원 삭제(중요!)
1. RDS 삭제 -> 인스턴스 스냅샷 생성 여부 언체크
-> 인정한다는 체크박스 체크 -> 삭제
2. CloudFormation 삭제
참고 자료: AFOS[2기] 노션 내용
[AWS] 9주차-4 Wordpress & WooCommerce 웹서버(EFS) & AWS RDS 구성 실습
http://example.com/2021/08/05/2021-08-04-AFOS-4/