AWS 11

AWS : 3 Tier [๊ตฌ์„ฑ๋„ ๋ฐ ์„ค์ • ์„ค๋ช…]

์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [DB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [WAS & NLB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [WEB & ALB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์ž‘์—…]์ฐธ์กฐ๋งํฌ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” AWS ๊ณต๋ถ€ - 3 Tienenjin.tistory.com   VPC ๊ตฌ์„ฑ์ด 8๊ฐœ์˜ ์„œ๋ธŒ๋„ท ์ค‘ Public 2๊ฐœ/ Privat 6๊ฐœ์œผ๋กœ ๊ตฌ์„ฑ๋˜์—ˆ๋‹ค2๊ฐœ์˜ ๊ฐ€์šฉ์˜์—ญ(A,C)์œผ๋กœ ๋‚˜๋ˆ ์„œ ๊ตฌ์„ฑํ•˜์˜€๋‹ค(์ด์œ : 1๊ฐœ์˜ ๊ฐ€์šฉ์˜์—ญ์œผ๋กœ ๊ตฌ์„ฑํ•˜๋ฉด ์žฅ์• ๊ฐ€ ์ƒ๊ฒผ์„๋•Œ ๋Œ€์ฒดํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ€์šฉ์˜์—ญ์ด ์—†๊ธฐ ๋•Œ๋ฌธ์—)   Subent ๊ตฌ์„ฑ์„œ๋ธŒ๋„ท๋Œ€์—ญ๊ณต์ธ IPํ—ˆ์šฉ ํฌํŠธ๊ฐ€์šฉ์˜์—ญpublic nat10.0.118.0/28ํƒ„๋ ฅ์  IP Apublic bastio..

AWS 2024.11.27

AWS : 3 Tier [DB ์ƒ์„ฑ]

์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [WAS & NLB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [WEB & ALB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์ž‘์—…]์ฐธ์กฐ๋งํฌ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” AWS ๊ณต๋ถ€ - 3 Tier ๊ตฌ์ถ• 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš & VPC & Bastion HostAWS 3 Tier ๊ตฌnenjin.tistory.com  ์ธ์Šคํ„ด์Šค ์‚ฌ์–‘ServerSpecOSVolumePublic IPApplicationVersionBastiont2.microAmazon Linux8 GBOXXWEB01t2.smallAmazon Linux20 GBXApache2.4.XWEB02t2.smallAmazon Linux20 GBXApache2.4.XWAS01t2.smallA..

AWS 2024.11.26

AWS : 3 Tier [WAS & NLB ์ƒ์„ฑ]

์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [WEB & ALB ์ƒ์„ฑ]์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์ž‘์—…]์ฐธ์กฐ๋งํฌ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” AWS ๊ณต๋ถ€ - 3 Tier ๊ตฌ์ถ• 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš & VPC & Bastion HostAWS 3 Tier ๊ตฌ์ถ•ํ•˜๊ธฐ 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš / ๋„คํŠธ์›Œํฌ ๊ตฌ์ถ• / Bastion Hosnenjin.tistory.com    8. WAS8-1 ๋ณด์•ˆ๊ทธ๋ฃน ์ƒ์„ฑ 8-2 Bastion ๋ณด์•ˆ๊ทธ๋ฃน ์•„์›ƒ๋ฐ”์šด๋“œ ์ถ”๊ฐ€SSH WAS ๋ณด์•ˆ๊ทธ๋ฃน์„ ์ถ”๊ฐ€ํ•œ๋‹ค 8-3 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ์ธ์Šคํ„ด์Šค ์‚ฌ์–‘๊ณผ ์„œ๋ธŒ๋„ท์— ์ฃผ์˜ํ•˜์—ฌ 2๊ฐœ์˜ WAS ์„œ๋ฒ„๋ฅผ ์ƒ์„ฑํ•œ๋‹ค  9. Tomcat ์„ค์น˜- root ๊ณ„์ • ์ „ํ™˜$ sudo su -- java ์„ค์น˜# yum install java-1.8*- ๋ฒ„์ „ ํ™•์ธ..

AWS 2024.11.23

AWS : 3 Tier [WEB & ALB ์ƒ์„ฑ]

์ด์ „ ๊ธ€์—์„œ ์ด์–ด์ง‘๋‹ˆ๋‹ค AWS : 3 Tier [์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์ž‘์—…]์ฐธ์กฐ๋งํฌ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” AWS ๊ณต๋ถ€ - 3 Tier ๊ตฌ์ถ• 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš & VPC & Bastion HostAWS 3 Tier ๊ตฌ์ถ•ํ•˜๊ธฐ 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš / ๋„คํŠธ์›Œํฌ ๊ตฌ์ถ• / Bastion Host ๊ตฌ์ถ•velog.io  1. ๊ตฌ์„ฑ๋„  2. vpc ๋ฐ ์„œ๋ธŒ๋„ท ์„ค์ •์„œ๋ธŒ๋„ท`nenjin.tistory.com     5. WEB5-1 ๋ณด์•ˆ๊ทธ๋ฃน ์ƒ์„ฑ์ธ๋ฐ”์šด๋“œ ๊ทœ์น™ SSH๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  Bastion-group์—๋งŒ ์ง€์ •ํ•œ๋‹ค์˜ค์ง Bastion host๋งŒ WEB์„œ๋ฒ„ ๋‚ด๋ถ€์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ ์„ค์ •์ด๋‹ค 5-2 Bastion ๋ณด์•ˆ๊ทธ๋ฃน ์•„์›ƒ๋ฐ”์šด๋“œ ์ถ”๊ฐ€SSH WEB๋ณด์•ˆ๊ทธ๋ฃน์„ ์ถ”๊ฐ€ํ•œ๋‹ค 5-3 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑWEB ์ธ์Šคํ„ด์Šค ์‚ฌ์–‘์— ๋งž๋„๋ก ์ƒ์„ฑํ•˜๊ณ  WEB01๊ณผ WEB0..

AWS 2024.11.23

AWS : 3 Tier [์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์ž‘์—…]

์ฐธ์กฐ๋งํฌ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” AWS ๊ณต๋ถ€ - 3 Tier ๊ตฌ์ถ• 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš & VPC & Bastion HostAWS 3 Tier ๊ตฌ์ถ•ํ•˜๊ธฐ 1ํŽธ - ๊ตฌ์ถ• ๊ณ„ํš / ๋„คํŠธ์›Œํฌ ๊ตฌ์ถ• / Bastion Host ๊ตฌ์ถ•velog.io    1. ๊ตฌ์„ฑ๋„ 2. vpc ๋ฐ ์„œ๋ธŒ๋„ท ์„ค์ •์„œ๋ธŒ๋„ท๋Œ€์—ญ๊ณต์ธ IPํ—ˆ์šฉ ํฌํŠธpublic nat10.0.118.0/28ํƒ„๋ ฅ์  IP public bastion10.0.118.16/28ํƒ„๋ ฅ์  IP22private web110.0.118.32/28 80, 22private web210.0.118.48/28 80, 22private was110.0.118.64/28 8080, 22private was210.0.118.80/28 8080, 22private db110.0.118.96/28 330..

AWS 2024.11.19

AWS : ALB๋ฅผ ์ด์šฉํ•œ LoadBalancer

ALB๋ž€?โ— Application Load Balancer์œผ๋กœ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ณ„์ธต(7๊ณ„์ธต)์—์„œ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ์„ ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค์ด๋‹ค.โ— HTTP์™€ HTTPS ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋ฉฐ, URL ๊ฒฝ๋กœ๋‚˜ ํ˜ธ์ŠคํŠธ ํ—ค๋”๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํŠธ๋ž˜ํ”ฝ์„ ๋ผ์šฐํŒ…ํ•  ์ˆ˜ ์žˆ๋‹ค.โ— ํŠนํžˆ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๋™์  ์ฝ˜ํ…์ธ ์™€ ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค ์•„ํ‚คํ…์ฒ˜ ํ™˜๊ฒฝ์—์„œ ์œ ์šฉํ•˜๊ฒŒ ์‚ฌ์šฉ๋œ๋‹ค.  1. ๋ณด์•ˆ ๊ทธ๋ฃน ์ƒ์„ฑํ•˜๊ธฐ 2. ๋Œ€์ƒ ๊ทธ๋ฃน ์ƒ์„ฑํ•˜๊ธฐ  3. ALB ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ ์ƒ์„ฑํ•˜๊ธฐ  4. minjin.shop์˜ DNS ๋ ˆ์ฝ”๋“œ ๋“ฑ๋กํ•˜๊ธฐC:\Users\asdf>nslookup๊ธฐ๋ณธ ์„œ๋ฒ„: bns1.hananet.netAddress: 210.220.163.82> set type=a> www.minjin.shop์„œ๋ฒ„: bns1.hananet.netAddress: 210.22..

AWS 2024.11.07

AWS : NLB๋ฅผ ์ด์šฉํ•œ LoadBalancer

NLB๋ž€?- Network Load Balancer์˜ ์•ฝ์ž๋กœ, AWS์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ณ ์„ฑ๋Šฅ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ ์„œ๋น„์Šค ์ค‘ ํ•˜๋‚˜์ด๋‹ค.- NLB๋Š” ํŠธ๋ž˜ํ”ฝ์„ ์—ฌ๋Ÿฌ ์„œ๋ฒ„ ์ธ์Šคํ„ด์Šค๋กœ ๋ถ„์‚ฐํ•˜์—ฌ ๋„คํŠธ์›Œํฌ ํŠธ๋ž˜ํ”ฝ์„ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๋Š” ์—ญํ• ์„ ํ•œ๋‹ค.  1. L/B ์ ‘๊ทผ์ œ์–ด๋ฅผ ์œ„ํ•œ ๋ณด์•ˆ ๊ทธ๋ฃน ์ƒ์„ฑ  2. ๋กœ๋“œ๋ฐธ๋Ÿฐ์‹ฑ > ๋Œ€์ƒ ๊ทธ๋ฃน ์ƒ์„ฑ2-1 ๋Œ€์ƒ ๋“ฑ๋กํ•˜๊ธฐ  3. ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ ์ƒ์„ฑ  4. https(443) ์ ‘์† ํ…Œ์ŠคํŠธ4-1 CNAME ๋ ˆ์ฝ”๋“œ ์ถ”๊ฐ€ํ•˜๊ธฐ 4-2 ์ธ์ฆ์„œ ์š”์ฒญํ•˜๊ธฐ 4-3 443 ๋ฆฌ์Šค๋„ˆ ์ถ”๊ฐ€ํ•˜๊ธฐ 4-4 ์ ‘์† ํ…Œ์ŠคํŠธ (http://www.minjin.shop๊ณผ https://www.minjin.shop)

AWS 2024.11.05

AWS : ์‹œ์ž‘ ํ…œํ”Œ๋ฆฟ ์ƒ์„ฑํ•˜๊ธฐ

โ— ํ…œํ”Œ๋ฆฟ = ๊ณจ๋“  ์ด๋ฏธ์ง€โ—  AWS์—์„œ๋Š” ์ฃผ๋กœ ํ…œํ”Œ๋ฆฟ์ด๋ผ ๋ถˆ๋ฆผโ— ๋™์‹œ์— ์—ฌ๋Ÿฌ๋Œ€ ์ƒ์„ฑ ๊ฐ€๋Šฅ 1. ์‹œ์ž‘ํ…œํ”Œ๋ฆฟ ์ƒ์„ฑmjmj, minjin ํ‚ค pem ํŒŒ์ผ ๋ถ„์‹ค์ด์Šˆ(^^)๋กœ real_mj ์ƒˆ๋กœ ์ƒ์„ฑํ•จ (24.11.04)#!/bin/bashcat /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/\$basearch/gpgcheck=0enabled=1EOFsudo yum -y install nginxsudo mv /usr/share/nginx/html/index.html /usr/share/nginx/html/index.html.bak aws s3 cp s3://mj-s3-stroage/inde..

AWS 2024.11.05

AWS : WEB ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

1. ์ธ์Šคํ„ด์Šค ์ƒ์„ฑNGINX Web Server ์ธ์Šคํ„ด์Šค ์ƒ์„ฑํ•˜๊ธฐ   2. mobaxterm ์ ‘์†์ƒ์„ฑํ•œ ์ธ์Šคํ„ดํŠธ์˜ ip์ฃผ์†Œ๋กœ ์ ‘๊ทผ1) instance ip ์ฃผ์†Œ ์ž…๋ ฅ2) Specify username ์ฒดํฌ ํ›„ ec2-user์ž…๋ ฅ3) User private key ์ฒดํฌ ํ›„ key pair์˜ pem ํŒŒ์ผ ๊ฒฝ๋กœ ์ง€์ •์ ‘์† ์„ฑ๊ณต   3. httpd ์„ค์น˜[ec2-user@ip-10-200-1-184 ~]$ sudo yum -y install httpd[ec2-user@ip-10-200-1-184 ~]$ sudo systemctl start httpd[ec2-user@ip-10-200-1-184 ~]$ sudo systemctl status httpdโ— httpd.service - The Apache HTTP Ser..

AWS 2024.07.08