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..
My Tech Blog (AWS)
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..
1. SSH (Secure Shell)SSH๋ Secure Shell์ ์ฝ์๋ก, ๋คํธ์ํฌ๋ฅผ ํตํด ์์ ํ๊ฒ ์ปดํจํฐ์ ์๊ฒฉ ์ ์ํ๊ธฐ ์ํ ํ๋กํ ์ฝโถ ์ํธํ๋ ํต์ : ๋ฐ์ดํฐ๋ฅผ ์์ ํ๊ฒ ์ ์กํ๊ธฐ ๋๋ฌธ์ ๋์ฒญ์ด๋ ๋ฐ์ดํฐ ๋ณ์กฐ๋ฅผ ๋ฐฉ์ง. โถ ์๊ฒฉ ์๋ฒ ๊ด๋ฆฌ: AWS EC2 ๊ฐ์ ์๋ฒ์ ์ ์ํด์ ๋ช
๋ น์ด๋ฅผ ์คํํ๊ฑฐ๋ ํ์ผ์ ๊ด๋ฆฌํ ์ ์๋ค. โถ AWS์์ SSH๋ ๋ณดํต ํฐ๋ฏธ๋์ด๋ ๋ช
๋ น์ด ์ฐฝ(CLI)์์ ์คํํ๋ ๋ช
๋ น์ด๋ฅผ ํตํด ์ฌ์ฉ๋๋๋ฐ, ์๋์ ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๋ค. ssh -i "your-key.pem" ec2-user@your-ec2-ip2. 3 Ways to connect to EC2 Instance- SSH- PuTTY- EC2 Instance Connect ๐ If one method works (SSH, ..
1. What's Security Groupsโถ Security Groups are the fundamental of network security.โถ They control how traffic is allowed into or out of our EC2 Instances.โญ Security groups only contain allow rules - ํ์ฉ๊ท์น๋ง ํฌํจ๋๋ฏ๋ก ๋ฌด์์ด ๋ค์ด๊ฐ๊ณ ๋๊ฐ๋ ์ง ์ ์ ์๋ค. โญ Security groups rules can reference by IP or by security group or other security groups - ๋ณด์ ๊ทธ๋ฃน์ IP์ฃผ์๋ฅผ ๊ธฐ์ค์ผ๋ก ๊ท์น์ ์์ฑํ๋ค. - ๋๋ ๋ค๋ฅธ ๋ณด์ ๊ทธ๋ฃน์ ์ฐธ์กฐํ์ฌ ์ค์ ํ ์ ์๋ค. (๋ณด์๊ทธ๋ฃน์ ์๋ก ์ฐธ์กฐ..
1. What's Amazon EC2?E2C in AWS stands for Amazon Elastic Compute Cloud = Infrastructure as a Serviceโถ EC2 is one of the most popular of AWS's offeringโถ EC2 is not a single service. โถ mainly consists in the capability of :- Renting virtual machines (EC2) ๊ฐ์๋จธ์ ์๋ ํ ์ ์๋๋ฐ ์ด๊ฑธ EC2 Instance ๋ผ๊ณ ํจ- Storing data on virtual drives (EBS) ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ๋๋ผ์ด๋ธ or EBS Volume์ ์ ์ฅ ํ ์ ์๋ค- Distrubuting load across ..