brunch

20탄-Cloudformation으로 웹,DB한번에

실습 , 워드 프레스 CF 템플릿 필요

by Master Seo

목차

<0> 선수조건

<1> web-db 스택생성

<2> cloudformation 에서 정보 확인

<3> web-db 스택 삭제




<0> 선수조건



목표

cloud formation으로 웹,DB한번에 구축 해보자


1 cloudformation.png




1

템플릿 파일을 준비한다.

워드 프레스 템플릿으로 테스트 한다.

네트워크, 웹서버 , DB를 만드는 cloudformation 템플릭 파일이 미리 만든다.

모든 샘플 템플릿

https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/cfn-sample-templates.html


2

서버를 접속하기 위한 EC2 Key pair 있어야 한다.

q-o , r-x






<1> web-db 스택생성





cloudformation


1

스택 만들기 > 새 리소스 사용 > 템플릿 파일 업로드 > 파일 선택 > 스택이름

web-db1

DB비밀번호

password111

DBRoot암호

password222

DBuser

topas

KeyName

선택 (필수)

다음 > 다음 > 스택 생성




<2> cloudformation 에서 정보 확인



1

템플릿 탭

매개변수 탭

이벤트 탭

자원 탭

출력 탭


EC2 ip 기록

web url 기록

220 출력.png



EC2 IP로 접속

ip/wordpress

299 wordpress.png



1

사이트 접속

Site Title

sss

student

student123

topasvga@naver.com

워드 프레스 설치



2

로그인

student

student123

300 워드프레스.png




3

ssh로 서버 접속

ps -ef




<3> web-db 스택 삭제




다음

https://brunch.co.kr/@topasvga/1196


감사합니다.



keyword
매거진의 이전글 20탄-CloudFormation으로 VPC만들기