AWS

[AWS] CLI ๊ฐœ๋…๊ณผ ์„ค์น˜ ๋ฐ configure ๋“ฑ๋ก

martinooo 2024. 8. 14. 09:06

aws

 

 

 

 

๐Ÿคท‍โ™‚๏ธ AWS CLI(Command Line Interface)๋ž€?


AWS CLI(Amazon Web Services Command Line Interface)๋Š” AWS๋ฅผ ๊ด€๋ฆฌํ•˜๊ณ  ์ƒํ˜ธ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ ๋ช…๋ น์–ด ๋„๊ตฌ์ž…๋‹ˆ๋‹ค.

 

2022.11.16 - [AWS] - AWS EC2 ์ธ์Šคํ„ด์Šค Putty ํ™œ์šฉํ•ด์„œ ์„œ๋ฒ„ ์ ‘์†

 

AWS EC2 ์ธ์Šคํ„ด์Šค Putty ํ™œ์šฉํ•ด์„œ ์„œ๋ฒ„ ์ ‘์†

๐Ÿคณ Putty๋ฅผ ํ™œ์šฉํ•ด์„œ EC2 ์ธ์Šคํ„ด์Šค ์ ‘์†. puttygen๋ฅผ ํ™œ์šฉํ•ด์„œ EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ์‹œ ๋ฐ›์€ ํ‚คํŽ˜์–ด pem ํŒŒ์ผ์„ ppk ํŒŒ์ผ๋กœ ๋ณ€ํ™˜์„ ํ•ด์ค˜์•ผ ์œˆ๋„์šฐ์—์„œ EC2 ์ธ์Šคํ„ด์Šค์— ์ ‘์†์ด ๊ฐ€๋Šฅํ•˜๋‹ค. Key passphrase ๋ณด์•ˆ์„

cometruedream.tistory.com

 

 

 

๐Ÿคท‍โ™‚๏ธ AWS CLI ํŠน์ง•


  1. ๋ช…๋ น์–ด๋กœ AWS ์„œ๋น„์Šค ์ œ์–ด: AWS CLI๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด EC2 ์ธ์Šคํ„ด์Šค์˜ ์‹œ์ž‘/์ค‘์ง€, S3 ๋ฒ„ํ‚ท ๊ด€๋ฆฌ, IAM ์‚ฌ์šฉ์ž ๋ฐ ๊ถŒํ•œ ์„ค์ •, RDS ์ธ์Šคํ„ด์Šค ๊ด€๋ฆฌ ๋“ฑ ๋‹ค์–‘ํ•œ ์ž‘์—…์„ ๋ช…๋ น์ค„์—์„œ ์ง์ ‘ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  2. ์Šคํฌ๋ฆฝํŠธ&์ž๋™ํ™”: AWS CLI๋ฅผ ์ด์šฉํ•˜๋ฉด ๋ฐฐ์น˜ ์Šคํฌ๋ฆฝํŠธ๋‚˜ ํŒŒ์ดํ”„๋ผ์ธ์„ ํ†ตํ•ด ์ž๋™ํ™” ์ž‘์—…์„ ๊ตฌ์ถ•ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  3. ํฌ๋กœ์Šค ํ”Œ๋žซํผ ์ง€์›: AWS CLI๋Š” Window, macOS, Linux์—์„œ ๋ชจ๋‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ Python ๊ธฐ๋ฐ˜์œผ๋กœ ๋‹ค์–‘ํ•˜ ์šด์˜์ฒด์ œ์—์„œ ํ˜ธํ™˜์ด ๋ฉ๋‹ˆ๋‹ค.
  4. ์ผ๊ด€์„ฑ: AWS CLI๋Š” AWS์— ๊ฑฐ์˜ ๋ชจ๋“  ์„œ๋น„์Šค์— ๋ช…๋ น์–ด๋ฅผ ์ œ๊ณตํ•˜๋ฉฐ, ์ผ๊ด€๋œ ๋ช…๋ น์–ด ๊ตฌ์กฐ๋ฅผ ์ œ๊ณตํ•˜์—ฌ ์‚ฌ์šฉ์ž๋“ค์ด ์‰ฝ๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

AWS CLI ์„ค์น˜ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€

https://aws.amazon.com/ko/cli/

 

Command Line Interface - AWS CLI - AWS

aws-shell์€ ๋ช…๋ น์ค„ ์…ธ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ์„œ, AWS ๋ช…๋ น์ค„ ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ƒˆ๋กœ์šด ์‚ฌ์šฉ์ž์™€ ๊ณ ๊ธ‰ ์‚ฌ์šฉ์ž ๋ชจ๋‘์—๊ฒŒ ๋„์›€์ด ๋˜๋Š” ํŽธ์˜ ๊ธฐ๋Šฅ ๋ฐ ์ƒ์‚ฐ์„ฑ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ฃผ์š” ๊ธฐ๋Šฅ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต

aws.amazon.com

 

 

cli

AWS ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์—์„œ ๋ณธ์ธ OS์— ๋งž๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์„ค์น˜ํ•ด์„œ CLI๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. 

 

AWS CLI ๋ฒ„์ „ํ™•์ธ

aws --version

 

AWS ๋ฒ„์ „ ์ •๋ณด๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด ์„ค์น˜๊ฐ€ ์ž˜๋œ ๊ฒ๋‹ˆ๋‹ค.

 

๐Ÿคท‍โ™‚๏ธ CLI ๊ฐœ๋…๊ณผ ์„ค์น˜ ๋ฐ configure ๋“ฑ๋ก


1. shell์—์„œ ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜๊ธฐ ์œ„ํ•ด์„œ ์•„๋ž˜ ๋ช…๋ น์–ด ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

aws configure

 

aws

 

aws configure
AWS Access Key ID: AWS ์ฝ˜์†”์—์„œ ๋ฐœ๊ธ‰๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ์•ก์„ธ์Šค ํ‚ค ID์ž…๋‹ˆ๋‹ค.
AWS Secret Access Key: ์•ก์„ธ์Šค ํ‚ค ID์™€ ํ•จ๊ป˜ ์‚ฌ์šฉ๋˜๋Š” ๋น„๋ฐ€ ํ‚ค์ž…๋‹ˆ๋‹ค.
Default region name: AWS CLI์—์„œ ๊ธฐ๋ณธ์ ์œผ๋กœ ์‚ฌ์šฉํ•  ์ง€์—ญ(๋ฆฌ์ „)์ž…๋‹ˆ๋‹ค. ์˜ˆ: us-west-2.
Default output format: ๋ช…๋ น์–ด ์ถœ๋ ฅ ํ˜•์‹์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ: json, text, table.

 

์œ„์— ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋ฐœ๊ธ‰๋ฐ›์€ accesskey, ๋ฆฌ์ „์ด๋ฆ„์„ ์ž…๋ ฅํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

 

 

2. ์•„๋ž˜ ๋ช…๋ น์–ด๋กœ ๋“ฑ๋ก๋œ ์ •๋ณด๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

aws configure list

 

aws

 

์œ„์— ๋ช…๋ น์–ด๋กœ aws configure list ์ž…๋ ฅํ•˜๋ฉด ์„ค์ •ํ•œ ์ •๋ณด์˜ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

๐Ÿคท‍โ™‚๏ธ CLI ๊ฐœ๋…๊ณผ ์„ค์น˜ ๋ฐ configure ๋“ฑ๋ก ์ •๋ฆฌํ•˜๋ฉด์„œ


AWS CLI ์„ค์น˜ ๋ฐ ๋ฒ„์ „ ํ™•์ธ ๋ฐฉ๋ฒ•, ๊ทธ๋ฆฌ๊ณ  shell์—์„œ configure ๋ช…๋ น์„ ํ†ตํ•ด ์„ค์ • ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜๋Š” ๊ณผ์ •์„ ์‚ดํŽด๋ณด์•˜์Šต๋‹ˆ๋‹ค.

 

์ด ๊ณผ์ •์—์„œ ์ฃผ์˜ํ•  ์ ์€ AWS์—์„œ ๋ฐœ๊ธ‰๋ฐ›์€ Access Key์™€ Secret Access Key๋Š” ๋งค์šฐ ๋ฏผ๊ฐํ•œ ๋ณด์•ˆ ์ •๋ณด์ž…๋‹ˆ๋‹ค.

์ด๋Ÿฌํ•œ ์ž๊ฒฉ ์ฆ๋ช…์€ ์™ธ๋ถ€์— ์ ˆ๋Œ€๋กœ ๋…ธ์ถœ๋˜์–ด์„œ๋Š” ์•ˆ ๋˜๋ฉฐ ์ž˜๋ชป ์œ ์ถœ๋  ๊ฒฝ์šฐ ์‹ฌ๊ฐํ•œ ๋ณด์•ˆ ์‚ฌ๊ณ ๋กœ ์ด์–ด์งˆ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

๋”ฐ๋ผ์„œ ํ•ด๋‹น ํ‚ค๋Š” ๋ฐ˜๋“œ์‹œ ์•ˆ์ „ํ•œ ์žฅ์†Œ์— ์ €์žฅํ•˜๊ณ  ํ•„์š”์— ๋”ฐ๋ผ ํ‚ค ํšŒ์ „๊ณผ ๊ฐ™์€ ๋ณด์•ˆ ๊ด€๋ฆฌ๋ฅผ ์ฒ ์ €ํžˆ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.


 

์žฌ๋ฐŒ๋Š” ์˜ค๋Š˜์˜ ๋ ๋ณ„ ์šด์„ธ ๋ณด๊ณ  ๊ฐ€์„ธ์š”! 

 

 

https://cometruedream.tistory.com/247

 

[React] Tailwind ํ•œ์ค„, ๋‘์ค„, ์„ธ์ค„ ํšจ๊ณผ className ์ปค์Šคํ…€

๐Ÿคท‍โ™‚๏ธ Tailwind ํ•œ์ค„, ๋‘์ค„, ์„ธ์ค„ ํšจ๊ณผํ”„๋กœ์ ํŠธ ์ง„ํ–‰์ค‘ ๋ฐฐ๋„ˆ ๋งํฌ์— URL ๊ธธ์ด๊ฐ€ ๋„ˆ๋ฌด ๊ธธ์–ด์„œ 3์ค„ ํšจ๊ณผ ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์•ผ ํ–ˆ์Šต๋‹ˆ๋‹ค. React + Tailwind CSS ์…‹ํŒ…๋œ ํ”„๋กœ์ ํŠธ ์—ฌ์„œ CSS ํŒŒ์ผ & style ํƒœ๊ทธ๋ฅผ ์‚ฌ์šฉํ•˜

cometruedream.tistory.com

 

 

https://cometruedream.tistory.com/243

 

NestJS Lifecycle (์ƒ๋ช…์ฃผ๊ธฐ) ๊ฐœ๋…

๐Ÿคท‍โ™‚๏ธ ๋ณธ๋ก ์— ์•ž์„œ Nest JS ๊ฐœ๋…?Nest JS๋Š” Node JS ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ ์„œ๋ฒ„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ”„๋ ˆ์ž„์›Œํฌ ์ž…๋‹ˆ๋‹ค. ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋Š” ์ƒ๋‹นํžˆ ์˜ค๋žซ๋™์•ˆ Express ๊ธฐ๋ฐ˜์œผ๋กœ ์„œ๋ฒ„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ์—์„œ ์••๋„์ ์ธ ์ 

cometruedream.tistory.com

 

 

https://cometruedream.tistory.com/242

 

๋ฆฌ์•กํŠธ Vite Proxy ํ™œ์šฉํ•œ CORS ์˜ค๋ฅ˜ ํ•ด๊ฒฐ

๐Ÿคท‍โ™‚๏ธ ๋ณธ๋ก ์— ์•ž์„œํ”„๋ก ํŠธ์—”๋“œ ๋ฒˆ๋“ค๋Ÿฌ ๊ฐœ๋…๊ณผ webpack vs vite ๋น„๊ต์— ๋Œ€ํ•ด์„œ ๊ณต๋ถ€๋ฅผ ํ•˜๊ณ  ๊ธ€์„ ๋ณด์‹œ๋ฉด ๋” ๋งŽ์€ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค^^ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ์„ ์œ„ํ•œ ๋ฒˆ๋“ค๋Ÿฌ ๊ฐœ๋…๊ณผ webpack vs vite ๋น„๊ตhttps://comet

cometruedream.tistory.com

 

 

https://cometruedream.tistory.com/241

 

React ํด๋”๊ตฌ์กฐ FSD ๊ธฐ๋Šฅ ๋ถ„ํ™œ ์„ค๊ณ„ ์•„ํ‚คํ…์ฒ˜

๐Ÿคท‍โ™‚๏ธ ๋ณธ๋ก ์— ์•ž์„œํ”„๋กœ์ ํŠธ๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์— ์•ž์„œ ํด๋” ๊ตฌ์กฐ, ์„ค๊ณ„์— ๋Œ€ํ•œ ์•„ํ‚คํ…์ฒ˜๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒƒ์€ ์ƒ๋‹นํžˆ ์–ด๋ ต๋‹ค. ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ์— React FSD ํด๋”๊ตฌ์กฐ ์•„ํ‚คํ…์ฒ˜๋ฅผ ์„ค๊ณ„ํ•  ์˜ˆ์ •์ด๋ผ์„œ FSD ์•„ํ‚คํ…

cometruedream.tistory.com

 

 

https://cometruedream.tistory.com/244

 

์‰ฝ๊ฒŒ ์ดํ•ดํ•˜๊ณ  ์‚ฌ์šฉํ• ์ˆ˜ ์žˆ๋Š” Prisma ๋ช…๋ น์–ด ์ •๋ฆฌ

๐Ÿคท‍โ™‚๏ธ Prisma ๋ช…๋ น์–ด ๋ณธ๋ก ์— ์•ž์„œ Prisma๋ž€?Nest JS ํ”„๋ ˆ์ž„์›Œํฌ์™€ Prisma ORM์„ ํ™œ์šฉํ•ด์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ Prisma๋Š” Node JS ๊ธฐ๋ฐ˜์— ํ”„๋ ˆ์ž„์›Œํฌ/๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ์ƒํ˜ธ์ž‘์šฉ์ด ์ž˜๋˜๋ฉฐ Prisma + DB ์—ฐ๋™์œผ

cometruedream.tistory.com