๋ฐ˜์‘ํ˜•

Devops 28

[AWS] RDS ๋ž€?

Intro์•ˆ๋…•ํ•˜์„ธ์š”. AWS ๊ด€๋ จ ์šฉ์–ด ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์€ ์ƒํ™œ์ฝ”๋”ฉ์˜ AWS ์•„๋งˆ์กด ์›น ์„œ๋น„์Šค(Amazon Web Services) ์ฑ…์„ ๋ฐ”ํƒ•์œผ๋กœ ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.  RDS-1์•„๋งˆ์กด RDS๋Š” Amazon Relational Database Service์˜ ์ค„์ž„๋ง์ž…๋‹ˆ๋‹ค. ์ฆ‰ ์ปดํ“จํ„ฐ์— DB๋ฅผ ์„ค์น˜ํ•˜๊ณ  ๋Œ€์‹  ์šด์˜ํ•ด์ฃผ๋Š” ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

Devops/AWS 2024.08.06

[AWS] S3๋ฅผ ์„œ๋ฒ„๋กœ ํ™œ์šฉํ•˜๊ธฐ, CloundFront ์ด์šฉํ•ด์„œ ์ „ ์„ธ๊ณ„ ๋ฐฐํฌํ•˜๊ธฐ

Intro์•ˆ๋…•ํ•˜์„ธ์š”. AWS ๊ด€๋ จ ์šฉ์–ด ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์€ ์ƒํ™œ์ฝ”๋”ฉ์˜ AWS ์•„๋งˆ์กด ์›น ์„œ๋น„์Šค(Amazon Web Services) ์ฑ…์„ ๋ฐ”ํƒ•์œผ๋กœ ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.  S3๋ฅผ ์„œ๋ฒ„๋กœ ํ™œ์šฉํ•˜๊ธฐCloudFront๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋ฉด ๋” ์ด์ƒ ์šฐ๋ฆฌ์˜ ์›น ์„œ๋ฒ„๋Š” ์‚ฌ์šฉ์ž๋ฅผ ์ง์ ‘ ๋งŒ๋‚˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ CloudFront๋กœ ์ ‘์†ํ•˜๊ฒŒ ๋˜๋ฉด CloudFront๊ฐ€ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋ผ์„œ ์›น ์„œ๋ฒ„์—๊ฒŒ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ์›น ์„œ๋ฒ„๊ฐ€ ์ž์‹ ์˜ ์ •๋ณด๋ฅผ CloudFront์— ์ „์†กํ•˜๊ณ , CloudFront๋Š” ์›น ์„œ๋ฒ„์˜ ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ์‘๋‹ตํ•ฉ๋‹ˆ๋‹ค. ์ดํ›„ ์‚ฌ์šฉ์ž๊ฐ€ CloudFront๋ฅผ ์ ‘์†ํ–ˆ์„ ๋•Œ ์›น ์„œ๋ฒ„์˜ ์ •๋ณด๋ฅผ CloudFront๊ฐ€ ์ €์žฅํ•˜๊ฒŒ ๋˜๋ฉด ๊ทธ ๋‹ค์Œ์˜ ์š”์ฒญ์€ CloudFront๊ฐ€ ์‘๋‹ตํ•ฉ๋‹ˆ๋‹ค.  ์›น ์„œ๋ฒ„๋Š” ..

Devops/AWS 2024.07.24

[AWS] AWS ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ•, S3๋กœ ํ•˜๋Š” ํŒŒ์ผ ๊ด€๋ฆฌ

Intro์•ˆ๋…•ํ•˜์„ธ์š”. AWS ๊ด€๋ จ ์šฉ์–ด ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์€ ์ƒํ™œ์ฝ”๋”ฉ์˜ AWS ์•„๋งˆ์กด ์›น ์„œ๋น„์Šค(Amazon Web Services) ์ฑ…์„ ๋ฐ”ํƒ•์œผ๋กœ ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.  AWS ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ•ํด๋ผ์šฐ๋“œ ์ปดํ“จํŒ…: ์ธํ„ฐ๋„ท ๋„ˆ๋จธ์— ์žˆ๋Š” ๋‚จ์˜ ์ปดํ“จํ„ฐ๋ฅผ ๊ตฌ๋ฆ„ (cloud)์— ๋น„์œ ํ•ด์„œ ํด๋ผ์šฐ๋“œ ์ปดํ“จํŒ…์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„, ์Šคํ† ๋ฆฌ์ง€, ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค, ๋„คํŠธ์›Œํ‚น ๋“ฑ์˜ ์ปดํ“จํŒ… ์„œ๋น„์Šค๋ฅผ ์ธํ„ฐ๋„ท์„ ํ†ตํ•ด ์˜จ๋””๋งจ๋“œ๋กœ ์ œ๊ณตํ•˜๊ณ , ์‚ฌ์šฉํ•œ ๋งŒํผ๋งŒ ๋น„์šฉ์„ ์ง€๋ถˆํ•˜๋Š” ๊ฒƒ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ํ˜ธ์ŠคํŒ…(hosting): ํ˜ธ์ŠคํŠธ ์ปดํ“จํ„ฐ๋ฅผ ๋นŒ๋ ค์ค˜์„œ ์„œ๋ฒ„๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค๋ฅผ ๋งํ•ฉ๋‹ˆ๋‹ค.ํ˜ธ์ŠคํŠธ(host): ์ธํ„ฐ๋„ท์— ์—ฐ๊ฒฐ๋œ ์ปดํ“จํ„ฐ ํ•œ ๋Œ€๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. EC2(Elastic Compute Cloud): AWS์—์„œ ๋…๋ฆฝ๋œ ์ปด..

Devops/AWS 2024.07.22

[Git] submodule / subtree

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” git submodule / subtree ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. submodule # Goal ํ•˜๋‚˜ ์ด์ƒ์˜ ์™ธ๋ถ€ ์ €์žฅ์†Œ (git ์ €์žฅ์†Œ)๋ฅผ ํ˜„์žฌ ํ”„๋กœ์ ํŠธ์— ํฌํ•จ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. # How to work ๋ถ€๋ชจ ์ €์žฅ์†Œ(repository)๋Š” ์„œ๋ธŒ๋ชจ๋“ˆ์ด๋ผ ๋ถˆ๋ฆฌ๋Š” ๋ณ„๋„์˜ ์ €์žฅ์†Œ๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋Š” ๋งํฌ๋งŒ์„ ์œ ์ง€ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์ €์žฅ์†Œ๋Š” ์ž์ฒด์ ์œผ๋กœ ๋…๋ฆฝ์ ์ธ Git ์ €์žฅ์†Œ๋กœ์„œ ๊ด€๋ฆฌ๋˜๋ฉฐ, ๋ถ€๋ชจ ์ €์žฅ์†Œ์—๋Š” ํ•ด๋‹น ์„œ๋ธŒ๋ชจ๋“ˆ์˜ ์ƒํƒœ(์ปค๋ฐ‹ ํ•ด์‹œ)๋งŒ์„ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค. # Usage ์„œ๋ธŒ๋ชจ๋“ˆ ์ถ”๊ฐ€: git submodule add ๋ถ€๋ชจ ์ €์žฅ์†Œ์—์„œ ์„œ๋ธŒ๋ชจ๋“ˆ ์—…๋ฐ์ดํŠธ: git submodule update --init --recursive subtree # Goal ์™ธ๋ถ€ ์ €์žฅ์†Œ์˜ ์ผ๋ถ€ ๋˜๋Š” ์ „์ฒด..

Devops/Git 2024.01.22

[AWS] beanstalk healthd.conf not foud ์—๋Ÿฌ ๋ฐœ์ƒ ์›์ธ ๋ฐ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. beanstalk ๋นˆ์Šคํ†ก์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐฐํฌ ํ™˜๊ฒฝ์„ ๊ตฌ์„ฑํ•˜๋˜ ๋„์ค‘ ์•„๋ž˜์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. healthd.conf not foud [ERROR] An error occurred during execution of command [app-deploy] - [start proxy with new configuration]. Stop running the command. Error: copy proxy conf from staging failed with error validate nginx configuration failed with error Command /bin/sh -c /usr/sbin/nginx -t -c /var/proxy/staging/nginx/nginx.conf f..

Devops/AWS 2023.12.11

[AWS] Elastic Beanstalk ์—๋Ÿฌ The EC2 instances failed to communicate with AWS Elastic Beanstalk

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ๋นˆ์Šคํ†ก ๋ฐฐํฌ ํ™˜๊ฒฝ ๊ตฌ์„ฑ ์ค‘ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€์Šต๋‹ˆ๋‹ค. The EC2 instances failed to communicate with AWS Elastic Beanstalk, either because of configuration problems with the VPC or a failed EC2 instance. Check your VPC configuration and try launching the environment again. Why? ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ ์ธ์Šคํ„ด์Šค ์„ค์ • ์ค‘ ํผ๋ธ”๋ฆญ IP ์ฃผ์†Œ ํ• ๋‹น์— ์ฒดํฌํ•˜์ง€ ์•Š์œผ๋ฉด ๋‹ค์Œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. How to solve the problem ์œ„ ํ™”๋ฉด๊ณผ ๊ฐ™์ด ํผ๋ธ”๋ฆญ IP ์ฃผ์†Œ > ํ™œ์„ฑํ™”๋จ์— ์ฒดํฌ๋ฅผ ํ•˜๋ฉด ํ•ด๋‹น ์—..

Devops/AWS 2023.11.28

[Git Actions] Warning: Failed to download action XXXXXXX: Response status code does not indicate success: 503 (Service Unavailable) ์—๋Ÿฌ

Intro API ๋ฐฐํฌ ์ค‘ ๊ฐ‘์ž๊ธฐ ๋‹ค์Œ์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. Warning: Failed to download action action-slack-notify Error: Response status code does not indicate success: 503 (Service Unavailable) Why? deploy ๊ด€๋ จํ•ด์„œ ์ˆ˜์ •์‚ฌํ•ญ์ด ์—†์—ˆ๋Š”๋ฐ๋„, ๋ถˆ๊ตฌํ•˜๊ณ  ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ด์„œ ๋ฌด์Šจ์ผ์ธ๊ฐ€ ์‹ถ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ตฌ๊ธ€๋ง ์‹œ์ž‘... ๋น„์Šทํ•œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ ๊ฐ™์•„ ๊ธ€์„ ์ฝ์–ด๋ดค๋Š”๋ฐ์š”, ๋ถˆ๊ณผ ๋ช‡๋ถ„ ์ „๋ถ€ํ„ฐ ๊ณ„์† comment๊ฐ€ ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋‹ฌ๋ฆฌ๋”๋ผ๊ณ ์š”! github ๋‚ด ์—๋Ÿฌ์ธ ๊ฒƒ ๊ฐ™์•˜์–ด์š”. ๋ช‡๋ถ„ ํ›„์— ๋‹ค์‹œ ๋ฐฐํฌํ•ด๋ณด๋‹ˆ, ์ •์ƒ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค :) ์ด๋Ÿฐ ์ผ€์ด์Šค๋„ ์žˆ์–ด์„œ ์‹ ๊ธฐํ–ˆ๋„ค์š”. https://github.com/actions/..

Devops/Git 2023.09.05

[AWS] EC2 ์ธ์Šคํ„ด์Šค ์Šคํ† ๋ฆฌ์ง€๋ž€?

55. EBS ๊ฐœ์š” EBS Volume ๋ณผ๋ฅจ์„ ์‚ฌ์šฉํ•˜๋ฉด ์ธ์Šคํ„ด์Šค๊ฐ€ ์ข…๋ฃŒ๋œ ํ›„์—๋„ ๋ฐ์ดํ„ฐ๋ฅผ ์ง€์†ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. EBS Volume ์„ ์“ฐ๋Š” ๋ชฉ์ ์ž…๋‹ˆ๋‹ค. ์ธ์Šคํ„ด์Šค๋ฅผ ์žฌ์ƒ์„ฑํ•˜๊ณ  ์ด์ „ EBS ๋ณผ๋ฅจ์„ ๋งˆ์šดํŠธํ•˜๋ฉด ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค์‹œ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•œ๋งˆ๋””๋กœ ๋งํ•˜๋ฉด USB ์Šคํ‹ฑ์ฒ˜๋Ÿผ ํ•œ ์ปดํ“จํ„ฐ์—์„œ ๊บผ๋‚ด ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ์— ๊ฝƒ๋Š” ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค. EBS ๋ณผ๋ฅจ์€ ํŠน์ •ํ•œ ๊ฐ€์šฉ ์˜์—ญ์— ๊ณ ์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์Šค๋ƒ…์ƒต์„ ์ด์šฉํ•˜๋ฉด ๋‹ค๋ฅธ ๊ฐ€์šฉ ์˜์—ญ์œผ๋กœ๋„ ๋ณผ๋ฅจ์„ ์˜ฎ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. CCP ๋ ˆ๋ฒจ์˜ ESB ๋ณผ๋ฅจ์€ ํ•œ ๋ฒˆ์— ๋‘ ๊ฐœ์˜ ์ธ์Šคํ„ด์Šค์™€ ์—ฐ๊ฒฐ๋  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ธ์Šคํ„ด์Šค ํ•˜๋‚˜์— ๋‘ ๊ฐœ์˜ EBS ๋ณผ๋ฅจ์ด ์—ฐ๊ฒฐ๋˜๋Š” ๊ฑด ๋ฌธ์ œ ์—†์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๋„คํŠธ์›Œํฌ USB ์Šคํ‹ฑ ๋‘ ๊ฐœ๊ฐ€ ๋จธ์‹  ํ•˜๋‚˜์— ์—ฐ๊ฒฐ๋˜๋Š” ์ƒํ™ฉ์„ ์ƒ๊ฐํ•ด ๋ณด๋ฉด ๋ฉ๋‹ˆ๋‹ค. EBS ๋ณผ๋ฅจ์„ ์ƒ์„ฑ..

Devops/AWS 2023.05.27

[AWS SAA] EC2 ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ ์–ด์†Œ์‹œ์—์ดํŠธ ๋ ˆ๋ฒจ

46. ํ”„๋ผ์ด๋น— vs ํผ๋ธ”๋ฆญ vs ํƒ„๋ ฅ์  IP IPv4๋Š” ๊ณต์šฉ ๊ณต๊ฐ„์—์„œ 37์–ต ๊ฐœ์˜ ์„œ๋กœ ๋‹ค๋ฅธ ์ฃผ์†Œ๋ฅผ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค. 47. ํ”„๋ผ์ด๋น— vs ํผ๋ธ”๋ฆญ vs ํƒ„๋ ฅ์  IP ์‹ค์Šต # ํ”„๋ผ์ด๋น—, ํผ๋ธ”๋ฆญ public ip๋กœ ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค. private ip๋Š” ์‚ฌ์„ค ๋„คํŠธ์›Œํฌ์— ์†ํ•˜๊ณ  ํ˜„์žฌ aws ์‚ฌ์„ค ๋„คํŠธ์›Œํฌ์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ธํ„ฐ๋„ท์œผ๋กœ AWS์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์„ ๋ฟ์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ public ip๋ฅผ ์ƒค์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ณต์šฉ ๋„คํŠธ์›Œํฌ์—์„œ AWS์— ์•ก์„ธ์Šค ํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ssh -i EC2Tutorial.pem ec2-user@3.129.218.15 // public ip ๋กœ๊ทธ์ธ ์„ฑ๊ณต ์‹œ private ip๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [ec2-user@ip-172-31-11-234 ~]$ ssh -i EC2Tutoria..

Devops/AWS 2023.05.23

[AWS] EC2๊ธฐ์ดˆ, EC2๋ž€?

30. AWS ์˜ˆ์‚ฐ ์„ค์ • ๊ฒฐ์ œ๋Œ€๊ธˆ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด์„œ๋Š” ๋ฃจํŠธ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. https://us-east-1.console.aws.amazon.com/billing/home#/account ํ™œ์„ฑํ™”๋ฅผ ๋ˆ„๋ฅด๋ฉด IAM User๋„ ๊ฒฐ์ œ ๋Œ€์‹œ ๋ณด๋“œ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฒฐ์ œ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ์ง€๋ถˆํ•œ ์„œ๋น„์Šค์— ๋Œ€ํ•œ ๋””๋ฒ„๊น…์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Free tier์— ํ•ด๋‹นํ•˜๋Š” ์„œ๋น„์Šค๋“ค๋„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ œ ๊ฒฝ์šฐ ์ด๋ฏธ ๊ธฐ๊ฐ„์ด ์ง€๋‚˜์„œ ๋ณผ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๋น„์šฉ์— ๋Œ€ํ•œ ์•Œ๋žŒ์„ ๋ฐ›์œผ๋ ค๋ฉด ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ AWS ์˜ˆ์‚ฐ์„ ๋งŒ๋“œ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. #1 ์ œ๋กœ ์ง€์ถœ ์˜ˆ์‚ฐ #2 ์›”๋ณ„ ๋น„์šฉ ๊ณ„์‚ฐ ํด๋ผ์šฐ๋“œ์— ์„ค์ •ํ•˜๋ ค๋Š” ์˜ˆ์‚ฐ ๊ธˆ์•ก์ž…๋‹ˆ๋‹ค. ์ฒญ๊ตฌ์„œ๋ฅผ ํƒ์ƒ‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ฐฐ์› ์Šต๋‹ˆ๋‹ค. (Free tier, ์˜ˆ์‚ฐ ์„ค์ • ๋ฐฉ๋ฒ•) 31. EC2 Section ํด๋ผ์šฐ๋“œ๋Š”..

Devops/AWS 2023.05.21
๋ฐ˜์‘ํ˜•