#319 ๋ฐ AWS Layers ๋ฐํ์ ๊ด๋ จํ์ฌ ์ด๊ฒ์ด ์ด๋ฅผ ๋ ๊ฐ๋จํ๊ฒ ๋ง๋๋ ์ ์ฌ์ ์ธ ์ต์ ์ ๋๊น? ์ค์ Powershell ์คํฌ๋ฆฝํธ๊ฐ ํจ์ฌ ๋ ๊ฐ๋ณ๊ณ ๋ฐ๋ณต/ํ ์คํธํ๊ธฐ ์ฝ๋๋ก .NET Core Runtime์ ๋ ์ด์ด๋ก ํจํค์งํ ์ ์์ต๋๊น? ๊ทธ๊ฒ์ ์์ฒญ๋ ๊ฒ์ ๋๋ค. ๊ฐ์ ํ๋ง๋ค 22MB ํ์ผ์ ์ ๋ก๋ํ๋ ๊ฒ์ Azure Functions ๋๋ Azure Automation๊ณผ ๋น๊ตํ์ฌ ๋น ๋ฅธ ๊ฐ๋ฐ์ ์ํ ์ฃผ์ ์ค๋จ ๊ฐ๊ฒฉ์ ๋๋ค.
์ด์ ๋ํ ์ ์ฌ์ ์ธ ์ง์นจ์ด ์์ต๋๊น?
์๋ ํ์ธ์ @JustinGrote , ์ด๊ฒ์ ๊ด์ฌ์ ๊ฐ์ ธ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! ๊ณ์ธต๊ณผ ํจ๊ป .NET Core ์ฌ์ฉ์ ๋ํ ์ด ํ ๋ก ์ ์ฐธ์ฌํ๋ ๊ฒ์ ๊ณ ๋ คํ์ญ์์ค. https://github.com/aws/aws-extensions-for-dotnet-cli/issues/58
์ด์ ๋ ์ด์ด์ .Net Core ์ง์์ด ์์ผ๋ฏ๋ก Powershell์ ๊ฐ์ ธ์ฌ ์ ์์ต๋๊น? ๋ชจ๋์ ๋ ์ด์ด์ ์
๋ก๋ํ ๋ค์ Publish-AWSPowerShellLambda cmdlet( dotnet lambda deploy-function --function-layers
์ ์ ์ฌ)์ ๋ํ -Function-Layers
ํ๋๊ทธ๋ฅผ ๊ฐ์ง ์ ์๋ค๋ฉด ์ ๋ง ์ข์ ๊ฒ์
๋๋ค.
10๊ฐ์ ํ, ์ฌ๊ธฐ์ ์ด๋ค ์ ๋ฐ์ดํธ๊ฐ ์์ต๋๊น?
@normj ์๊ฐ์ด ์์ผ์ธ์?
๋ถ์๋ฌ? PS ๋ชจ๋์ด ๋ ์ด์ด์์ ์ง์๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด์ ๋ ์ด์ด์ .Net Core ์ง์์ด ์์ผ๋ฏ๋ก Powershell์ ๊ฐ์ ธ์ฌ ์ ์์ต๋๊น? ๋ชจ๋์ ๋ ์ด์ด์ ์ ๋ก๋ํ ๋ค์ Publish-AWSPowerShellLambda cmdlet(
dotnet lambda deploy-function --function-layers
์ ์ ์ฌ)์ ๋ํ-Function-Layers
ํ๋๊ทธ๋ฅผ ๊ฐ์ง ์ ์๋ค๋ฉด ์ ๋ง ์ข์ ๊ฒ์ ๋๋ค.