๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

AWS6

[Raspberry Pi] AWS S3 Bucket ์—์„œ ๊ฐ€์ ธ์˜จ Contents ๊ฐ’์œผ๋กœ LED ์ œ์–ดํ•˜๊ธฐ ๐ŸŽ‡ AWS S3 Bucket ์—์„œ ๊ฐ€์ ธ์˜จ Contents ๊ฐ’์œผ๋กœ์˜ LED ์ œ์–ด 1. AWS S3 Bucket ์œผ๋กœ์˜ ์ ‘๊ทผ์„ ์œ„ํ•œ ์ดˆ๊ธฐ ์„ค์ • ++ Boto3 SDK ์„ค์ • --> https://alim11.tistory.com/398 [Data Processing] Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) ๐ŸŒธ Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) 1. pip ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ boto3 ์„ค์น˜ !pip install boto3 ++ boto3 ๋ž€? boto3๋Š” Amazon Web Services (AWS)์™€ ์ƒํ˜ธ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ ์˜คํ”ˆ ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ alim11.tistory.com ++ AWS ๊ณ„์ • ๋ฐ ๋ฆฌ์ „ .. 2023. 9. 18.
[AWS] AWS S3 Bucket ์† ํŒŒ์ผ Contents ์ฝ์–ด์˜ค๊ธฐ ๐Ÿณ AWS S3 Bucket ์† ํŒŒ์ผ Contents๋ฅผ ์ฝ์–ด์˜ค๊ธฐ ์œ„ํ•œ Python Script 1. pip ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด Boto3 ๋‹ค์šด๋กœ๋“œ !pip install boto3 ++ Boto3 ๊ฐ€ ๋ฌด์—‡์ธ์ง€ ๊ถ๊ธˆํ•˜๋‹ค๋ฉด? --> https://alim11.tistory.com/398 [Data Processing] Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) ๐ŸŒธ Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) 1. pip ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ boto3 ์„ค์น˜ !pip install boto3 ++ boto3 ๋ž€? boto3๋Š” Amazon Web Services (AWS)์™€ ์ƒํ˜ธ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ ์˜คํ”ˆ ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ alim11... 2023. 9. 1.
[AWS] AWS Secret Key ์œ ์ถœ ์‹œ ๋Œ€์ฒ˜ ๋ฐฉ๋ฒ• ๐Ÿฅฃ AWS Secret Key ์œ ์ถœ ์‹œ ๋Œ€์ฒ˜ ๋ฐฉ๋ฒ• ์ •๋ฆฌ 1. AWS์˜ ์‹œํฌ๋ฆฟ ํ‚ค๊ฐ€ ์œ ์ถœ๋œ ๊ฒฝ์šฐ, ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์ผ์ด ์ „์†ก๋œ๋‹ค. 2. ์ด๋•Œ ๋ฉ”์ผ์˜ ๋ณธ๋ฌธ์„ ๋ณด๋ฉด ํ‚ค์˜ ์œ ์ถœ ๊ฒฝ๋กœ๊ฐ€ ์žˆ๋Š”๋ฐ, ์ด ๊ฒฝ๋กœ๋ฅผ ํƒ€๊ณ  ๋“ค์–ด๊ฐ€ ํ•ด๋‹น ํŒŒ์ผ ๋ฐ ํด๋”๋ฅผ ์‚ญ์ œํ•œ๋‹ค. ++ ํŒŒ์ผ & ํด๋” ์‚ญ์ œ ํ›„์—๋Š” ๊ผญ ๋‹ค์‹œ ์œ„ URL ๋กœ ๋“ค์–ด๊ฐ€ ์—‘์„ธ์Šค ํ‚ค๊ฐ€ ํฌํ•จ๋œ ๋‚ด์šฉ์ด ๋œจ๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ์žฌ์ฐจ ํ™•์ธํ•ด์•ผ ํ•จ 3. ์œ ์ถœ์˜ ์›์ธ์„ ์‚ญ์ œํ•˜์˜€๋‹ค๋ฉด, ๊ทธ ํ›„์—๋Š” ๋ฉ”์ผ ๋ณธ๋ฌธ์˜ ์•ˆ๋‚ด์— ๋”ฐ๋ผ ์•„๋ž˜ ์‚ฌํ•ญ์„ ์ˆœ์„œ๋Œ€๋กœ ์ˆ˜ํ–‰ํ•œ๋‹ค. โ“ ์ฒ˜์Œ ์ „์†ก๋˜์—ˆ๋˜ ๋ฉ”์ผ์— ์ž‘์„ฑ๋œ ์—ฐ๋ฝ์ฒ˜๋กœ ๊ถŒํ•œ ์ˆ˜์ • ์š”์ฒญ ๋ฉ”์ผ ์ž‘์„ฑ --> ์œ ์ถœ๋œ Secret Access ํ‚ค๋ฅผ ๋น„ํ™œ์„ฑํ™” ๋ฐ ์‚ญ์ œํ•˜๊ธฐ ์œ„ํ•ด ๊ถŒํ•œ ํ•„์š” โ“‘ ์œ ์ถœ๋œ ํ‚ค๋ฅผ ๋ณด์œ ํ•œ ์‚ฌ์šฉ์ž ๊ณ„์ •์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ + AWS ํ‚ค๋ฅผ ๋น„ํ™œ์„ฑํ™” & ์‚ญ์ œํ•  ๋•Œ ํ‚ค์˜ .. 2023. 8. 4.
[AWS] "ํŒŒ์ผ ์—…๋กœ๋“œ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€: Unable to locate credentials" ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ๐Ÿ‘‘ "Unable to locate credentials" ์˜ค๋ฅ˜๋ž€? "Unable to locate credentials" ์—๋Ÿฌ๋ž€ AWS ๊ณ„์ •๊ณผ ๊ด€๋ จํ•˜์—ฌ AWS ์ž๊ฒฉ ์ฆ๋ช…(์ธ์ฆ ์ •๋ณด)์„ ์ฐพ์„ ์ˆ˜ ์—†์„ ๋•Œ ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜์ด๋‹ค. ์ด์ „ ํฌ์ŠคํŠธ์—์„œ ๋‹ค๋ฃจ์—ˆ๋˜ Boto3์™€ AWS S3 ๋ฒ„ํ‚ท์„ ์ด์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๊ณผ์ •์—์„œ ๋ฐœ์ƒํ•˜์˜€์œผ๋ฉฐ, ์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” ์œ„ ์—๋Ÿฌ์˜ ํ•ด๊ฒฐ ๋ฐฉ์•ˆ์„ ๋‹ค๋ฃจ์—ˆ๋‹ค. ๐Ÿ‘‘ ๋ฐœ๊ฒฌํ•œ "Unable to locate credentials" ์˜ค๋ฅ˜์˜ ์ฃผ๋œ ์›์ธ ๋ฐ ์œ ์˜์  1. ๊ณ„์ •์˜ AWS ์ž๊ฒฉ ์ฆ๋ช… ํ™•์ธ # AWS ์ž๊ฒฉ ์ฆ๋ช… ์„ค์ • aws_access_key_id = '์—‘์„ธ์Šค ํ‚ค ID', aws_secret_access_key = '๊ณ„์ •์˜ ์‹œํฌ๋ฆฟ ์—‘์„ธ์Šค ํ‚ค' ์Šคํฌ๋ฆฝํŠธ ์ž‘์„ฑ ๊ณผ์ •์—์„œ.. 2023. 8. 3.
[AWS] Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) ๐ŸŒธ Boto3 SDK๋ฅผ ํ™œ์šฉํ•œ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ ์ž๋™ํ™” (Forward AWS S3 Bucket) 1. pip ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ boto3 ์„ค์น˜ !pip install boto3 ++ boto3 ๋ž€? boto3๋Š” Amazon Web Services (AWS)์™€ ์ƒํ˜ธ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ ์˜คํ”ˆ ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ, AWS์™€ ์ƒํ˜ธ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•œ ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ๊ณผ ํด๋ž˜์Šค๋ฅผ ์ œ๊ณตํ•œ๋‹ค. boto3๋Š” SDK ์ค‘์—์„œ๋„ Python ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, AWS ์„œ๋น„์Šค ์ค‘ S3(Simple Storage Service)๋‚˜ EC2(Elastic Compute Cloud) ๋“ฑ ๋‹ค์–‘ํ•œ ์„œ๋น„์Šค์— ์ ‘๊ทผํ•˜์—ฌ ๋ฐ์ดํ„ฐ ์—…๋กœ๋“œ & ๋‹ค์šด๋กœ๋“œํ•˜๋Š” ๋“ฑ์˜ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค. 2. AWS ์ž๊ฒฉ ์ฆ๋ช… ์„ค์ • ํ›„ ํด๋ผ์ด์–ธํŠธ ๊ฐ์ฒด ์ƒ์„ฑ import boto.. 2023. 8. 2.
[AWS] AWS Access Key & Secret Access Key ์ƒ์„ฑ ๋ฐฉ๋ฒ• ๐ŸŒฑ AWS Access Key & Secret Access Key ๋ž€? AWS Access Key์™€ Secret Access Key๋Š” Amazon Web Services (AWS) ๊ณ„์ •์— ์•ก์„ธ์Šคํ•˜๊ธฐ ์œ„ํ•œ ์ž๊ฒฉ ์ฆ๋ช…(credentials)์ด๋‹ค. ์ด ๋‘ ํ‚ค๋Š” AWS ๋ฆฌ์†Œ์Šค์— ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋ฐฉ์‹์œผ๋กœ ์ ‘๊ทผํ•˜๊ฑฐ๋‚˜ AWS CLI(Command Line Interface), SDK(Software Development Kit) ๋“ฑ์„ ์‚ฌ์šฉํ•˜์—ฌ AWS ์„œ๋น„์Šค์™€ ์ƒํ˜ธ ์ž‘์šฉํ•˜๊ธฐ ์œ„ํ•ด ์ฃผ๋กœ ์‚ฌ์šฉ๋œ๋‹ค. ๐ŸŒฑ AWS Access Key & Secret Access Key ์ƒ์„ฑ ๋ฐฉ๋ฒ• 1. AWS Console ์— ๋กœ๊ทธ์ธ 2. ์ขŒ์ธก์˜ ํƒญ์„ ์—ฐ ํ›„ "๋ณด์•ˆ ์ž๊ฒฉ ์ฆ๋ช…" ํด๋ฆญ 3. ์—‘์„ธ์Šค ํ‚ค ๋ถ€๋ถ„์„ ์ฐพ์•„ "์—‘์„ธ์Šค ํ‚ค ๋งŒ๋“ค๊ธฐ" ํด๋ฆญ 4. ์—‘์„ธ์Šค.. 2023. 7. 23.