惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
T
ThreatConnect
SecWiki News
SecWiki News
F
Future of Privacy Forum
AWS News Blog
AWS News Blog
C
Cisco Blogs
A
Arctic Wolf
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
V2EX
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
K
Kaspersky official blog
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Schneier on Security
Schneier on Security
NISL@THU
NISL@THU
Microsoft Azure Blog
Microsoft Azure Blog
量子位
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
Security Latest
Security Latest
M
Microsoft Research Blog - Microsoft Research
Google Online Security Blog
Google Online Security Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
InfoQ
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
F
Fox-IT International blog
S
Security @ Cisco Blogs
博客园 - 司徒正美
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Comments on: Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LINUX DO - 最新话题
GbyAI
GbyAI
Project Zero
Project Zero
腾讯CDC
T
Tailwind CSS Blog

DEV Community

RAG 시스템 실전 구축 (v42) copilot cloud agent is becoming an automation api Cx Dev Log — 2026-04-23 Why Tesla Is Becoming the AI Enterprise Case Study Every Leader Should Understand ORA-00214 오류 원인과 해결 방법 완벽 가이드 SpecAgnt v2.0: The Agent Lifecycle Framework for AI-Native Engineering Optimizing Signal Latency and Weight Allocations in Algorithmic Pipelines SSH Under the Hood: Protocols, Mechanisms, and the Full Technical Story دليل بوابات الدفع للتاجر العربي في 2026 (وكيف تختار المناسبة لمتجرك) Cómo Mi Configuración de Docker Me Salvó de un Ataque de Supply Chain (Y Por Qué la Tuya Debería Hacerlo También) How My Docker Setup Saved Me From a Supply Chain Attack (And Why Yours Should Too) Astro: The epitome of SEO Technical Update I Gave My AI Agent the Ability to Research Before It Writes — Here’s What Changed Kubernetes sem Cloud Provider (Parte 2): Criando Operators em Go para automação e self-service de plataforma AI Memory Needs an Authority Policy, Not Just More Context You've done tutorial after tutorial. Your GitHub is still empty. (Free 1‑page PDF, no signup) TypeScript 7.0: The Go Compiler That Makes TS 10x Faster Connecting Wallets the Right Way: wagmi v2 and EIP-6963 The 5-Layer Architecture Every Production Multi-Agent System Needs (And Why Most Skip Layers 4 and 5) CSS Scroll-Driven Animations: No JavaScript Required Vite 8 + Rolldown: Rust-Powered Builds That Are 10–30x Faster Core Architectural Components of Azure My Skills How I Use AI as a Senior Engineer Construí um motor ATS determinístico porque estava cansado de adivinhar por que meu currículo era rejeitado SCS-Lab1 — CloudTrail: Trail + S3 + KMS + Log Validation LuisCore MCP server — daily syndication · 2026-05-25 Cursor vs JetBrains Rider for C#/.NET in 2026: which to pay for I built a local-first movie recommender with Corrective-RAG (cited explanations, hybrid retrieval, runs entirely on Ollama) Scaling to 1 Million Users : Load Balancing & Caching Strategies How the Events Table That Looked Right Killed Our Queue Three Failures My AI Memory System Caught — And the Flaw It Revealed in Itself dotnet Framework life cycle tool LangGraph 워크플로우 템플릿 (v41) I built a free image compression API — no signup, just curl Designing TikTok from Scratch — A System Design Deep Dive PREDICTION-20260525-0007: boredom-with-asymmetric-leverage [2026-Q3 through 2027-Q3] [Boost] How to integrate the QuickBooks Invoice API in 2026 How I Cut My Anthropic API Bill by 50% With a Local Python Tool Vibe Coding Problems: 7 Visual Bugs AI Code Generators Always Ship Chinese AI Models 2026: The Agentic Revolution, Hardware Independence, and What It Means for Global Developers The Quiet AI War Inside Your Browser The 12-Line Anti-Bot Trick That Saved Our Airdrop Snapshot From Sybil Farms Building a production-ready SaaS dashboard in Next.js 16 — Recharts, TanStack Table, dark mode, and collapsible sidebar Why 2026 Belongs to Agentic AI (And How to Build Your First Local Agent) It Was 2024 When We Tried to Outsmart the Treasure Hunt Engine RAG 시스템 실전 구축 (v40) I Found a Tool That Generates a Complete .NET 8 or Java Spring Boot API From SQL Schema in 30 Seconds I Added a 4th Agent That Audits My Other Agents. It Caught My Strategist Procrastinating for 3 Weeks. Streaming LLM responses to the browser in Go (Server-Sent Events) How We Publish and Manage Educational Admission Updates at Scale on DailyAxom A prompt is not a conversation. It's a component contract. How to Pass the EAA 2025 Accessibility Audit — A Step-by-Step WCAG Checklist Building an Autonomous MCP Lead Generation System with Hermes Agent LangGraph 워크플로우 템플릿 (v40) How I Built 100 Browser-Based Image Tools With No Server (FFmpeg WASM, PDF-lib, AI Background Removal) Nginx CVE-2026-9256, AI Prompt Injection Defenses, and Claude AI Data Leak Demo Scaling RAG for 10M+ Docs, .md Agent Memory, & Claude Code for Motion Graphics Diagram as Code with draw.io DuckDB Delta, PostgreSQL 17 Migration, & SQLite Optimization Deep Dives Windows 11 Microsoft Account Login Recovery During Internet Restrictions The Linux Commands You Forgot Exist (And Why AI Workflows Make Them Relevant Again) Spec-Driven Development Without an IDE: I Generated NestJS, Go, Spring Boot, Laravel, and Rust Apps From a Single PRD File Components are states Edge SEO y Middleware: Cómo Interceptar a Googlebot y LLMs antes de llegar a tu Servidor Context window exceeded at turn 23. Here's how I track token usage without a tokenizer. My Hermes agent spent $3 before I noticed. Now it can't. My Hermes agent's stop condition was a 40-line if/elif chain. I replaced it with 3 lines. My agent kept hitting context limits. This one function fixed it. Create and configure Azure Firewall Your Hermes agent's audit log is leaking customer emails. Here's a 100-line lib that fixes that. My agent kept forgetting what it was doing. A scratchpad fixed it. I replaced 200 lines of ad-hoc state management in my Hermes agent with one object. Per-Key Rate Limiting for Agent Tool Calls: Stop One User From Breaking Everything Composable Output Guardrails: Filter Agent Responses Before They Reach Users Sanitize Your LLM Message Lists Before Every API Call Thread a Run ID Through Every Agent Call So You Can Debug Anything Normalize Provider Error JSON So Your Agent Can Actually Handle Failures Priority Queue for Agent Sub-Tasks: Stop Processing Low-Priority Work First Static Lint Rules for Your LLM Prompts (Before They Hit Production) tool-call-budgets: Stop Runaway Agent Loops Before They Hit Your Invoice Step Through Your Agent's Failures Like a Debugger The Simplest Stop Condition: A Hard Cap on Agent Loop Iterations Score Your Agent's Responses With a 0.0-1.0 Rubric (No LLM Judge Required) Fix Bad Structured Output by Feeding the Error Back to the Model Building an effective Storyblok Tool Plugin with SvelteKit How to Get Your Renault / Dacia Radio Code for Free RAG 시스템 실전 구축 (v39) Retraction — scrml’s Living Compiler I built a fitness app where the AI roasts you for eating pizza (and hypes you when you PR) The Top SaaS Founder Communities on Discord (Beyond the AI Hype) I Built a Production-Grade Async Job Queue from Scratch — Here's Everything That Actually Happened How to watch SMS from multiple Android phones in one iOS app We Didn’t Want Another AI Wrapper — So We Explored a High-Speed Hermes Orchestrator for Engineering Crews Multi-tenant além do TenantId: problemas reais e aprendizados em sistemas .NET After failing 23 times, I am sharing How I Actually Prepare for a Tech Interview Every Single Time Now. I built an app that works like a nutritionist for your brain. Here's what happened in 7 days. GoBadge Dynamic: From Module Stats to Universal Badges
VCP-Virtual Private Cloud
Supul Gintot · 2026-05-26 · via DEV Community

Supul Gintota

1.1 What is the VPC

In simple words, a VPC is your own private network inside AWS cloud. You can place your servers, databases, and other cloud resources inside it and control how they communicate with the internet and with each other.

Think of it like this:

AWS Cloud = a big city
Your VPC = your own private land/area inside that city

Inside that area, you decide:

  • which servers are public
  • which servers are private
  • who can access them
  • how traffic goes in and out
  • what security rules are applied

In your diagram:


Example:

A user from the internet sends a request to your website.
That request goes through the Internet Gateway and reaches the Web Server in the Public Subnet.
Then the web server can communicate with the Database in the Private Subnet.
But the database is not directly open to the internet, so it is more secure.

So, the main purpose of a VPC is to securely organize and control your cloud network.

1.2 Core Component

  1. Subnet

A subnet in a VPC is a smaller section of the VPC’s IP address range. There are three type of subnets

1. Public Subnet
2. Private Subnet
3. Isolated Subnet

Enter fullscreen mode Exit fullscreen mode

Think of a VPC as your private network in AWS, and subnets as smaller rooms/areas inside that network.

Example:

VPC CIDR: 10.0.0.0/16

Public Subnet:  10.0.1.0/24
Private Subnet: 10.0.2.0/24

Enter fullscreen mode Exit fullscreen mode

Why do we use subnets?

Subnets help you separate resources based on access level.

Public subnet

A public subnet is connected to the internet through an Internet Gateway.

Example resources:

  • Web server
  • EC2 instance that needs internet access
  • Load balancer

Private subnet

A private subnet is not directly accessible from the internet.

Example resources:

  • Database server
  • Application backend
  • Internal services

Simple example

VPC
 ├── Public Subnet
 │    └── EC2 Web Server
 │         Accessible from internet using HTTP/HTTPS/SSH
 │
 └── Private Subnet
      └── Database Server
           Not directly accessible from internet

Enter fullscreen mode Exit fullscreen mode

So, in simple words:

A subnet is a smaller network inside a VPC where you place AWS resources like EC2 servers, databases, and load balancers.

  1. Internet Gateway (IGW)

An Internet Gateway (IGW) in Amazon Web Services is a component that allows your VPC (Virtual Private Cloud) to communicate with the internet.

Think of it like a door between your AWS network and the public internet.

Simple Explanation
Without an Internet Gateway:

EC2 Instance ❌ Internet

Enter fullscreen mode Exit fullscreen mode

With an Internet Gateway:

EC2 Instance ↔ Internet Gateway ↔ Internet

Enter fullscreen mode Exit fullscreen mode

What It does
An Internet Gateway allows:

  • Incoming internet traffic to your AWS resources
  • Outgoing internet access from your instances

3.Router Table
A Route Table in Amazon Web Services is a set of rules that tells your VPC where network traffic should go.

Think of it like a GPS or traffic controller for your AWS network.

Simple Explanation
When data leaves an EC2 instance, the route table decides:

"Where should I send this traffic?"

Enter fullscreen mode Exit fullscreen mode

Examples:

  • To the internet
  • To another subnet
  • To a VPN
  • To another VPC

Build a Custom VPC from Scratch

Create

  1. VPC
  2. Public Subnet
  3. Private Subnet
  4. Internet Gateway
  5. Route Tables

STEP 01 - Create the VPC

  1. In the AWS Console search bar, type VPC and click VPC under Services.
  2. In the left sidebar, click Your VPCs.
  3. Click the orange Create VPC button (top right).
  4. Fill in the form: -> Resources to create: Select VPC only (not "VPC and more" -- we will do it manually for learning) -> Name tag: my-training-vpc -> IPv4 CIDR block: 10.0.0.0/16 -> IPv6 CIDR block: No IPv6 CIDR block -> Tenancy: Default
  5. Click Create VPC.
  6. You should see a green success banner. Note the VPC ID (e.g., vpc-0abc1234...).

STEP 2 - Create the Public Subnet

  1. In the left sidebar, click Subnets.
  2. Click Create subnet.
  3. Fill in:
    • VPC ID: Select my-training-vpc from the dropdown
  4. Under Subnet settings:
  5. Subnet name: my-public-subnet
  6. Availability Zone: Choose the first AZ in the list (e.g., ap-south-1a)
  7. IPv4 CIDR block: 10.0.1.0/24
  8. Click Create subnet.
  9. Subnet created. Note the Subnet ID.

STEP 3 - Create the Private Subnet

  1. In the left sidebar, click Subnets.
  2. Click Create subnet.
  3. Fill in:
    • VPC ID: Select my-training-vpc from the dropdown
  4. Under Subnet settings:
  5. Subnet name: my-private-subnet
  6. Availability Zone: Choose the first AZ in the list (e.g., ap-south-1a)
  7. IPv4 CIDR block: 10.0.2.0/24
  8. Click Create subnet.
  9. Subnet created. Note the Subnet ID.

STEP 4 - Create and Attach an Internet Gateway

  1. In the left sidebar, click Internet Gateways.
  2. Click Create internet gateway.
  3. Fill in
    • Name tag: my-training-igw
  4. Click Create internet gateway.
  5. You will see the IGW is created but its State shows Detached.
  6. Now attach it to your VPC
  7. With the new IGW selected, click the Actions button (top right).
  8. Click Attach to VPC.
  9. In the Available VPCs dropdown, select my-training-vpc.
  10. Click Attach internet gateway.
  11. The IGW State should now show Attached.

STEP 5 - Create a Public Route Table
AWS creates a Main route table for every VPC automatically. Best practice is not to modify the main route table (it applies to all subnets by default). Instead, we create a dedicated one for our public subnet.

  1. In the left sidebar, click Route Tables.
  2. You will see an existing route table -- this is the main one for my-training-vpc. Notice it only has the local route (10.0.0.0/16 -> local).
  3. Click Create route table.
  4. Fill in:
  • Name: my-public-route-table
  • VPC: Select my-training-vpc
  • Click Create route table.
  • New route table created.

STEP 6 - Add the Internet Route to the Public Route Table

  1. Click on my-public-route-table to open its details.
  2. Click the Routes tab.
  3. Click Edit routes.
  4. Click Add route.
  5. Fill in the new route:
  6. Destination: 0.0.0.0/0 -- This means "all traffic going anywhere on the internet"
  7. Target: Click the dropdown, select Internet Gateway, then select my-training-igw
  8. Click Save changes.
  9. The Routes tab should now show two routes:
  10. 10.0.0.0/16 -> local (VPC internal traffic)
  11. 0.0.0.0/0 -> igw-xxxxxxxx (internet traffic)

STEP 7 - Associate the Public Subnet with the Public Route Table

Adding a route to the route table is not enough -- we need to explicitly tell the public subnet to use this route table.

  1. Still on the my-public-route-table details page.
  2. Click the Subnet associations tab.
  3. Click Edit subnet associations.
  4. Check the box next to my-public-subnet.
  5. Click Save associations.
  6. The public subnet is now associated with the public route table.

STEP 8 - Enable Auto-assign Public IP for the Public Subnet
When you launch an EC2 instance into the public subnet, it needs a public IP to be reachable from the internet.

  1. In the left sidebar, click Subnets.
  2. Select my-public-subnet.
  3. Click Actions -> Edit subnet settings.
  4. Under Auto-assign IP settings, check Enable auto-assign public IPv4 address.
  5. Click Save.
  6. Done. Any EC2 instance launched into this subnet will automatically receive a public IP.

VPC Summary - What We Built

VPC: my-training-vpc (10.0.0.0/16)
|
|-- Public Subnet: my-public-subnet (10.0.1.0/24)
|       |
|       +-- Route Table: my-public-route-table
|               |-- 10.0.0.0/16 -> local
|               +-- 0.0.0.0/0  -> my-training-igw   [Internet access]
|
|-- Private Subnet: my-private-subnet (10.0.2.0/24)
|       |
|       +-- Route Table: Main (auto-created)
|               +-- 10.0.0.0/16 -> local             [No internet access]
|
+-- Internet Gateway: my-training-igw (Attached)

Enter fullscreen mode Exit fullscreen mode


Key Takeaways - Networking

  • A VPC is your private network inside AWS
  • Subnets are segments of that network, each scoped to one Availability Zone
  • A subnet becomes public only when it has a route to an Internet Gateway
  • Route tables are the traffic directors -- each subnet has one
  • The Internet Gateway is the single entry and exit point for internet traffic
  • Best practice: databases go in private subnets, web servers go in public subnets