๋ฐ˜์‘ํ˜•

AWS 20

[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

[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

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

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

Devops/AWS 2023.05.27

[AWS] Certified Solutions Architect Associate

Section1 : AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ ์–ด์†Œ์‹œ์—์ดํŠธ - AWS (Amazon Web Services) is a Cloud Provider - ์˜จ๋””๋ฉ˜๋“œ ๋ฐฉ์‹ ์‚ฌ์šฉ Section3 : AWS ์‹œ์ž‘ํ•˜๊ธฐ 8. AWS ํด๋ผ์šฐ๋“œ ๊ฐœ์š” - ๋ฆฌ์ „ ๋ฐ AZ aws๋Š” ์ •๋ง ๊ธ€๋กœ๋ฒŒํ•œ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. 9. AWS์˜ ์ฝ˜์†” ๋ฐ ์„œ๋น„์Šค ๋‘˜๋Ÿฌ๋ณด๊ธฐ ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด ๋ฆฌ์ „์„ ์„ ํƒํ•˜๋ฉด ์ง€์—ฐ ์‹œ๊ฐ„์ด ๊ฐ€์žฅ ์ ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. route53์˜ ๊ฒฝ์šฐ ํŠน๋ณ„ํ•œ ์ผ€์ด์Šค์ž…๋‹ˆ๋‹ค. ๋ฆฌ์ „์ด Global๋กœ ๋˜์–ด ์žˆ๋Š”๋ฐ์š”, ์ด ์ฝ˜์†”์€ ๋ฆฌ์ „ ์„ ํƒ์ด ํ•„์š”ํ•˜์ง€ ์•Š๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค. ๋ช‡๋ช‡ AWS ์„œ๋น„์Šค๋“ค์˜ ๋ฆฌ์ „์ด Global์ž…๋‹ˆ๋‹ค. ์‹ค์Šตํ•˜๋‹ค๊ฐ€ ํ™”๋ฉด์ด ๋‹ค๋ฅผ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•œ์ง€ ์•„๋ž˜ url์—์„œ ๋ฆฌ์ „ ์„œ๋น„์Šค๋ฅผ ์ฐพ์•„๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. https://aws.amazon.com/..

Devops/AWS 2023.05.17

[AWS] API Gateway๋ž€? (AWS Lambda ์™€ AWS API Gateway๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ )

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” AWS API Gateway ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์š”๊ทผ๋ž˜ API Gateway ๋ฅผ ์ฒ˜์Œ ์ ‘ํ•ด๋ด ๊ฐœ๋…์„ ํ•œ๋ฒˆ ๋” ๊ณต๋ถ€ํ•˜๊ณ  ๊ฐ€์•ผ ์ข‹์„ ๊ฒƒ ๊ฐ™์•„ ์ •๋ฆฌํ•ด๋ด…๋‹ˆ๋‹ค. API Gateway๋ž€ AWS API Gateway๋Š” AWS์˜ ๊ด€๋ฆฌํ˜• ์„œ๋น„์Šค ์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค. ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ์ž๊ฐ€ ๊ฐ„๋‹จํ•˜๊ฒŒ API (Application Programming Interface)๋ฅผ ์ƒ์„ฑ, ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ๋„๊ตฌ๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. API Gateway ๊ธฐ๋Šฅ ํด๋ผ์ด์–ธํŠธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜๊ณผ ๋ฐฑ์—”๋“œ ์„œ๋น„์Šค ๊ฐ„์˜ ํ†ต์‹ ์„ ๊ด€๋ฆฌํ•˜๊ณ , HTTP ๋˜๋Š” RESTful API๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์ธ์ฆ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ, ์š”์ฒญ ๋ฐ ์‘๋‹ต ๋ณ€ํ™˜, ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๋“ฑ์˜ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. API Gateway ์‚ฌ์šฉ ..

Devops/AWS 2023.05.16

[AWS] DynamoDB๋ž€?

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ์— ์นœ๊ตฌ๋“ค๊ณผ ํ•จ๊ป˜ ์‚ฌ์ด๋“œ ํ”„๋กœ์ ํŠธ๋ฅผ ์‹œ์ž‘ํ•˜๊ฒŒ ๋˜์—ˆ๋Š”๋ฐ์š”, AWS DynamoDB ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ๋กœ ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉํ•˜๊ธฐ์— ์•ž์„œ DynamoDB์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. DynamoDB DynamoDB๋Š” Amazon Web Services์—์„œ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŒ… NoSQL DB์ž…๋‹ˆ๋‹ค. ์Šค์ผ€์ผ์ด ์ปค์ง€๋”๋ผ๋„ reliable performance a managed experience, crypto libraries ์—…๋ฐ์ดํŠธ ํ•˜๊ธฐ ์œ„ํ•ด ์„œ๋ฒ„์— SSH๋กœ ์—ฐ๊ฒฐํ•  ํ•„์š”๊ฐ€ ์—†์Œ a small, ์‹ฌํ”Œํ•œ API allowing for ์‹ฌํ”Œํ•œ key-value access as well as more advanced query patterns. DynamoDB Features NOSQL ๋ฐ์ดํ„ฐ..

Devops/AWS 2023.04.03

[AWS] ElasticBeanstalk ๋นˆ์Šคํ†ก ์‚ญ์ œ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• Stack deletion failed: The following resource(s) failed to delete: [AWSEBSecurityGroup]

Intro ์•ˆ๋…•ํ•˜์„ธ์š”. AWS ElasticBeanstalk ๋นˆ์Šคํ†ก์„ ์‚ญ์ œํ•˜๋˜ ๋„์ค‘ ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. Stack deletion failed: The following resource(s) failed to delete: [AWSEBSecurityGroup] Why? AWSEBSecurityGroup ์ด ์‚ญ์ œ๊ฐ€ ์•ˆ๋˜์–ด ๋ฐœ์ƒํ•œ ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ €๋Š” Security Group ์—์„œ ๋นˆ์Šคํ†ก์—์„œ ์ƒ์„ฑ๋œ ๋ณด์•ˆ๊ทธ๋ฃน์„ ์ˆ˜์ •ํ•œ ์ ์ด ์žˆ๋Š”๋ฐ์š”, ์ˆ˜์ •ํ•œ ๋ณด์•ˆ๊ทธ๋ฃน์ด ์กด์žฌํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. How to solve the problem ๋ณด์•ˆ๊ทธ๋ฃน์—์„œ ์ˆ˜์ •ํ•œ ๋‚ด์—ญ์„ ์‚ญ์ œํ›„, ๋‹ค์‹œ Beanstalk ํ™˜๊ฒฝ ์ข…๋ฃŒ๋ฅผ ์‹คํ–‰ํ•˜๋‹ˆ, ์˜ค๋ฅ˜ ์—†์ด ํ™˜๊ฒฝ ์‚ญ์ œ๊ฐ€ ์ง„ํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ..

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