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

error1

[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.