Public subnet

Private subnet

여기서 별도의 설정은 NAT gateway를 말한다. NAT gateway는 inbound는 불가능하지만 outbound는 가능하다. → 패키지 설치 가능

대신 요금이 비쌈 IGW와 달리 elastic IP를 부여해야 하므로 여러 종류의 과금이 발생해서 비쌈 시간 당 100원인가 1000원인가

Example

Public subnet(rapa-vpc-vm)

private subnet

여기까지 하면 다음과 같이 두 개의 instance가 존재한다.

Untitled