๐Ÿ’ปDEV-STUDY/AWS

Outbound / NAT InstancePrivate EC2์— ์™ธ๋ถ€ ์ ‘๊ทผ ํ—ˆ์šฉ: OutBound๋ฅผ ์œ„ํ•œ NAT Instance ์„ค์ •๋”๋ณด๊ธฐAWS์—์„œ NAT Instance์˜ ๊ณต์‹์ง€์›์ด ์—†์–ด์ง€๊ณ , NAT Gatway๋ฅผ ๊ณต์‹ํ™” ํ–ˆ๋‹ค.ํ•˜์ง€๋งŒ, NAT Gateway๋Š” ๋น„์šฉ์ด ๋„ˆ๋ฌด ๋น„์‹ธ๊ธฐ ๋•Œ๋ฌธ์— NAT Instance๋ฅผ ๋งŒ๋“ค์–ด ์“ฐ๋ฉด ๋œ๋‹ค.1. NAT Instance ์—ญํ• ์„ ํ•  EC2(Public Subnet) ์ธ์Šคํ„ด์Šค ๋งŒ๋“ค๊ธฐ1. ์ธ์Šคํ„ด์Šค ์ด๋ฆ„(public-nat-test) ์„ค์ • 2. AMI ์„ค์ •AMI ๊ฒ€์ƒ‰์„ ํ†ตํ•ด ์ปค๋ฎค๋‹ˆํ‹ฐ ๋ฒ„์ „์œผ๋กœ ๋‚˜์˜จ NAT๋ฅผ ์œ„ํ•œ AMI๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.AWS ๊ณต์‹ NAT Instance(Pre-configured Amazon Linux AMI)๋Š” ๋”์ด์ƒ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค.→ `amzn-ami-vpc..
Bastion / SSH TunnelingPrivate EC2 ์ƒ์„ฑ ํ›„ ์™ธ๋ถ€ ์ ‘๊ทผ ํ—ˆ์šฉ: Inbound ์œ„ํ•œ Bastion ์„ค์ •1. PEM ํŒŒ์ผ์€ Private Key AWS์—์„œ PEM ํŒŒ์ผ์€ Private Key๋‹ค. SSH ํด๋ผ์ด์–ธํŠธ๋ฅผํ†ตํ•ด ์›๊ฒฉ ์„œ๋ฒ„(EC2 ์ธ์Šคํ„ด์Šค)์— ์ ‘๊ทผํ•  ๋•Œ, Private Key๊ฐ€ ํ•„์š”ํ•˜๋‹ค.AWS ์ฝ˜์†”์—์„œ ์ƒ์„ฑ๋œ PEM ํŒŒ์ผ์€ Private Key๋กœ, ์ด๋ฅผ ํ†ตํ•ด EC2 ์ธ์Šคํ„ด์Šค์— ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ๋‹ค. Public Key๋Š” AWS๊ฐ€ EC2 ์ƒ์„ฑ ์‹œ ๋‚ด๋ถ€์ ์œผ๋กœ ์ฃผ์ž…๋˜๋ฉฐ, ์‚ฌ์šฉ์ž๋Š” ์ด๋ฅผ ๋ณผ ์ˆ˜ ์—†๋‹ค.2. SSH ์ ‘์† ์‹œ Key Pair ์‚ฌ์šฉSSH ํด๋ผ์ด์–ธํŠธ๋Š” ์›๊ฒฉ ์„œ๋ฒ„์— ์ ‘์†ํ•  ๋•Œ  Key Pair ์ค‘ Private Key๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ํด๋ผ์ด์–ธํŠธ๋Š” PEM ํŒŒ์ผ(Private Key)์„ ์‚ฌ..
AWS VPC ๋ฐ ์„œ๋ธŒ๋„ท ์„ค์ • & EC2 ์ƒ์„ฑ AWS VPC ๋ฐ ์„œ๋ธŒ๋„ท ์„ค์ •ํ•˜๊ธฐ & Public EC2 ์ƒ์„ฑ ํ›„ ์™ธ๋ถ€ ์ ‘๊ทผ ํ—ˆ์šฉ1. VPC ์ง์ ‘ ๋งŒ๋“  ํ›„ ์„ค์ • ํ™•์ธ1. VPC ์ด๋ฆ„ (sanghyun-vpc-1) ์„ค์ •2. IPv4 CIDR์—์„œ ๊ฐ€์šฉ IP๋Œ€์—ญ (10.0.0.0/16) ์„ค์ •3. ์ƒ์„ฑํ•œ VPC ํ™•์ธ 2. Subnet ์ƒ์„ฑํ•˜๊ธฐSubnet์€ Public, Private 2๊ฐœ์”ฉ ๋งŒ๋“ ๋‹ค.2๊ฐœ์”ฉ ๋งŒ๋“œ๋Š” ์ด์œ  : ๊ฐ€์šฉ์„ฑ์„ ์œ„ํ•œ Multi AZ ์„ค์ • → ํ•œ์ชฝ์˜ AZ์—์„œ ํ™”์žฌ๋ผ๋˜๊ฐ€ ๋„คํŠธ์›Œํฌ ์ด์Šˆ ๋“ฑ์ด ๋ฐœ์ƒํ–ˆ์„ ์‹œ, ๋‹ค๋ฅธ ํ•œ์ชฝ์˜ AZ๋กœ ์ปค๋ฒ„ํ•˜๊ธฐ ์œ„ํ•จ 1. ์ƒ์„ฑํ•  ์„œ๋ธŒ๋„ท์˜ VPC ์„ ํƒ(sanghyun-vpc-1)2. ์„œ๋ธŒ๋„ท ์ด๋ฆ„(public-subnet-test1) ์„ค์ •3. ๊ฐ€์šฉ ์˜์—ญ(ap-northeast-2a..
1000_sang
'๐Ÿ’ปDEV-STUDY/AWS' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก