1. Private vs Public IP (IPv4)▶ Networking has two sorts of IPs. IPv4 and IPv6: - IPv4 : 1.160.10.240 - IPv6: 3ffe: 1900:4545:3:200:f8ff:fe21:67cf ▶ AWS supports IPv4 and IPv6 both▶ IPv4 is still the most common format used online.▶ IPv6 is newer and solves problems for the Internet of Things (IoT).▶ IPv4 allows for 3.7 billion different addresses in the public space.▶ IPv4: [0-255].[0-255].[0-2..
My Tech Blog (AWS)
Stop Instance vs Reboot Instance? 1️⃣ Stop Instance (정지)▶ 인스턴스를 완전히 종료(Shut down)했다가 다시 시작하게 됨▶ CPU, RAM 등의 리소스가 해제됨(할당 해제) → 과금이 중단되거나 줄어들 수 있음▶ 다시 시작하면 새로운 호스트에서 부팅될 수도 있음▶ EBS(Elastic Block Store) 볼륨에 저장된 데이터는 유지됨▶ 퍼블릭 IP는 변경될 수 있음 (탄력적 IP 할당 시 유지 가능)▶ 예) "AWS EC2 인스턴스를 밤에는 끄고, 낮에 다시 켜서 비용 절감하기" 2️⃣ Reboot Instance (재부팅)▶ 인스턴스를 다시 시작하는 것(Windows에서 ‘재부팅’과 유사)▶ CPU, RAM 등 리소스는 유지됨 → 과금 지속됨▶ 인스턴..
⚠️ 문제AWS에서 인스턴트를 재시작한 후 SSH를 시도했으나 아래와 같은 경고가 뜨는 현상ssh -i "your-key.pem" ec2-user@your-ec2-public-ip 🧐 원인인스턴스를 중지한 후 재시작하면 공용IP 주소가 변경된다. SSH가 새로운 호스트(공용 IP)로 연결하려고 하지만, 기존 known_hosts 파일에 기존의 IP(54.66.147.18)가 저장되어 있어서 충돌하는 상황으로 추정됨. 💡 해결법그냥 yes만 입력하고 엔터치면 된다.만약 Are you sure you want to continue connecting? 이 뜨지 않으면 아래 매뉴얼대로 먼저 충돌하는 IP 키를 삭제하고 재시도 해야 한다. ▼ ✅️ 기존 known_hosts에서 충돌하는 항목 삭제하기Pow..
1. Which of the following EC2 purchasing options offers the highest discount but is not suitable for databases or critical workloads?질문 1. 다음 중, 할인 폭이 가장 크나, 데이터베이스 혹은 중요 업무에는 적합하지 않은 EC2 구매 옵션은 무엇인가요? ✔️ 1) Spot Instances (스팟 인스턴스)❌ 2) On-demand (온디맨드)❌ 3) Dedicated Hosts (전용 호스트)❌ 4) Reserved Instances (예약 인스턴스)Spot Instances are suitable for short-term workloads and are the most cost-effecti..
EC2 인스턴스를 실행할 수 있는 모든 방법1. Spot request1-1.How to check Pricing historyEC2 Dashboard > [Spot requests] > [Pricing history] 에서 EC2 Instance의 최근 요금 내역 확인 가능 그래프에서 검은색 선이 On-demand 가격 1-2. How to request Spot Instance?EC2 Dashboard > [Spot requests] > [Request spot Instance] 🍩 Launch parameters (인스턴스를 시작할 때 설정하는 방식)- Manually configure launch parameters- Use a launch template ▶ Manually configur..
1. EC2 Spot Instance Request ▶ Can get a discount up to 90% compared to On-demand▶ Define max spot price and get the instance while current spot price - 인스턴스의 스팟 가격이 우리가 지불하고자 하는 최대 가격보다 낮다면 해당 인스턴스 유지▶ The hourly spot price varies based on offer and capacity. - 시간당 스팟은 오퍼나 용량에 따라 다르다. ⭐ If the current spot price > your max price you can choose to stop or terminate your instance with a 2 minute..
1. EC2 Instances Purchasing Options1-1. On-Demand InstancesOn-Demand Instances는 AWS EC2(Elastic Compute Cloud)에서 제공하는 인스턴스 유형 중 하나로, 사용자가 필요할 때 원하는 컴퓨팅 자원을 생성하고, 사용한 만큼만 요금을 지불하는 방식이다. 이 방식은 선결제나 장기 약정이 없으며, 유연하게 사용 가능하다. ▶ 용도웹애플리케이션 테스트 환경, 데이터 분석 등짧은 기간 동안만 리소스가 필요한 경우트래픽이 예측하기 어려운 상황(예: e-commerce 세일 기간)▶ 특징특정 기간 동안 컴퓨팅 자원이 필요할 때 자유롭게 시작(Start)하거나 중지(Stop)할 수 있기 때문에 예측할 수 없는 트래픽 급증이나 단기 프로젝트에..
1. Connect to Instance▶ SSH 연결 대신 브라우저 기반으로 EC2 인스턴스에 대한 세션을 실행 할 수 있다. Instances > click on Instance's name > [Connect] > [EC2 Instance Connect] ▶ 명령줄 여러개 사용 안해도 세션이 브라우저 안에 있다▶ SSH 유틸리티를 미리 사용하지 않고도 google.com 또는 원하는 여러 가지 명령을 실행 할 수 있다.▶ This is relying on SSH behind the scenes ▶ If you go edit or delete your Instances Security group rules > Inbounds rules > Edit inbound rules > Delete SS..