VPC Peering

VPC Peering ์ž์„ธ-ํžˆ ์•Œ์•„๋ณด๊ธฐ ์‹ค๋ฌด ver.

Reference: aws docs

What is VPC Peering?

  • ์„œ๋กœ ๋‹ค๋ฅธ ๋‘ ๊ฐœ์˜ VPC๋ฅผ ์—ฐ๊ฒฐํ•ด ์ฃผ๋Š” ๊ธฐ๋Šฅ

    • ๋‘ ๊ฐœ์˜ VPC๊ฐ€ ์—ฐ๊ฒฐ๋˜๋ฉด ๋‚ด๋ถ€ ํ†ต์‹  ํ•  ์ˆ˜ ์žˆ๋Š” ํ†ต๋กœ๊ฐ€ ์ƒ๊ธด๋‹ค!

  • ๋‹ค๋ฅธ ๊ณ„์ • / ๋‹ค๋ฅธ region์—์„œ๋„ peering ์„ค์ •์ด ๊ฐ€๋Šฅํ•˜๋‹ค

    • ์„œ๋กœ ๋‹ค๋ฅธ region ๊ฐ„ peering connection์„ ์„ค์ •ํ•จ์œผ๋กœ์จ ์–ป๋Š” ํšจ๊ณผ

      • DR (Disaster Recovery: ์žฌํ•ด ๋ณต๊ตฌ) ๊ตฌ์„ฑ ๊ฐ€๋Šฅ

      • ์—ฌ๋Ÿฌ region์„ peering ํ•ด๋†“๊ณ  ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๋‹ค

        • ex) ํƒœ๊ตญ ์„œ๋น„์Šค๋ฅผ ๊ตญ๋‚ด์—์„œ ์ ‘์†

Working with VPC Peering

  • Requester VPC & Accepter VPC

    • ์ด๋ฆ„์ด requester์™€ accepter์ง€๋งŒ, ๋ฐฉํ–ฅ์„ ๋œปํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋‹ค!

      • Subnet ํ†ต์‹ ์— ๋”ฐ๋ผ ๋ฐฉํ–ฅ์„ ๋‹ค๋ฅด๊ฒŒ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค

  • ๋ณด๋‚ด๋ ค๋Š” VPC์˜ CIDR Block >= ๋ฐ›๋Š” VPC์˜ CIDR Block

    • why?

      • ๋ณด๋‚ด๋ ค๋Š” VPC์˜ CIDR Block๋ณด๋‹ค ๋ฐ›๋Š” VPC์˜ CIDR Block์ด ๋” ํฌ๋ฉด ๋‹น์—ฐํ•˜ ํ†ต์‹ ์ด ์•ˆ๋œ๋‹ค!

    • ๋ณดํ†ต์€ ๋‘ VPC์˜ CIDR Block์„ ๊ฐ™๊ฒŒ ์„ค์ •ํ•˜์ง€๋งŒ, ๋ฐ›๋Š” VPC๊ฐ€ ๋” ์ž‘๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋‹ค

      • ์ž‘์•„๋„ ๋ฌธ์ œ๋˜์ง€ ์•Š๋Š”๋‹ค

Things you should be aware of

  1. Peering Connection ์„ค์ • ์‹œ ๋‘ ๊ฐœ์˜ VPC์˜ CIDR Block์ด ์ถฉ๋Œํ•˜๋ฉด ์•ˆ๋œ๋‹ค

    • why?

      • ๊ฐ๊ฐ์˜ VPC๊ฐ€ ๋”ฐ๋กœ ์กด์žฌํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ๋‘˜์„ ์—ฐ๊ฒฐํ•˜๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ์ถฉ๋Œ๋‚˜๋Š” CIDR์„ ๊ฐ€์ง€๋ฉด ์•ˆ๋œ๋‹ค

  2. Peeriing ๊ตฌ๊ฐ„์„ ํ†ต๊ณผํ•˜๋ฉด ๊ธˆ์•ก์ด ๋” ๋ถ€๊ณผ๋œ๋‹ค

    • ํ•˜์ง€๋งŒ ํฐ ๊ธˆ์•ก์€ ์•„๋‹ˆ๋‹ค!

Last updated