๋๋ค๋ก ํจ์ ์์ฑ
1) ๋๋ค ํจ์ ์์ฑ
2) ๋๋ค ๊ด๋ฆฌํ๊ธฐ
ํ ์คํธ๋ฅผ ์คํํ๋ฉด, ์๋ ํ๋ฉด๊ณผ ๊ฐ์ด ํ ์คํธ ๊ฒฐ๊ณผ์ ๋ก๊ทธ๋ฅผ ํ์ธํ ์ ์๋ค.
3) ํ ์คํธ ํด๋ณด๊ธฐ
- ์ฝ๋ ์์ฑ
exports.handler = (event, context, callback) => {
const output = "success lambda api test: "+event.val01;
callback(null, output);
};
- ์์ฑํ ์ฝ๋๋ฅผ ํ ์คํธ
{
"val01" : "jsh"
}
'๐ฅ IT 8๊ฐ ์ง๋ฌด ๊ธฐ์ด์ฒดํ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ๋ก์ ํธ์ ํ๋ฆ, IT ์ง๋ฌด (0) | 2021.07.10 |
---|---|
์๋ฒ๋ฆฌ์ค ์น ๊ตฌ์ถ - (2. API Gateway ์ ํ , ํ ์คํธ ๋๊ตฌ) (0) | 2021.06.30 |
์๋ฒ๋ฆฌ์ค ์น ๊ตฌ์ถ - (0. AWS lambda์ API Gateway๋?) (0) | 2021.06.30 |
์ฑ๋ฅํ ์คํธ ๋๊ตฌ - Jmeter (1) | 2021.06.29 |
2-tier ๊ตฌ์ถ - (8. cloudwatch) (0) | 2021.06.24 |