์๋ ํ์ธ์,
๋๋ ์ด๊ฒ์ด ๋ฒ๊ทธ๋ผ๊ณ ์๊ฐํ์ง๋ง ๋ด๊ฐ ํ๋ ธ๋ค๋ฉด ๋๋ฅผ ๊ณ ์ณ์ฃผ์ธ์!
ํด๋ฌ์คํฐ ์ฃผ์ au1.cloud.thethings.network
์ฌ์ฉํ์ฌ AWS ๊ณ์ ์์ The Things Stack์ ๋ํ AWS IoT ํตํฉ์ ์ค์นํ๊ณ ๊ตฌ์ฑํ ํ AWS IoT Core์์ ์ฌ๋ฌผ์ ์์ฑํ์ต๋๋ค. CreateThingFunction์ด ์ค๋ฅ๋ฅผ ๋ฐํํ์ต๋๋ค. Failed to dial Identity Server at "ttn-v3-is:///ttn.au1.cloud.thethings.network": connection error: desc = "transport: error while dialing: dial tcp: lookup ttn.au1.cloud.thethings.network on 169.254.78.1:53: no such host"
์ค๋ช
์์๋ ํด๋ฌ์คํฐ ์ฃผ์๊ฐ au1, Identity Server API requests to any cluster other than eu1 will fail
์์ ์ ์๋ค๊ณ ๋์ ์์ต๋๋ค.
ํด๋ฌ์คํฐ ์ฃผ์๊ฐ eu1.cloud.thethings.industries
์ด๋๋๋ก ์คํ์ ๋ณ๊ฒฝํ์ผ๋ฉฐ ttn ์ฝ์ au1.cloud.thethings.network์์ ํญ๋ชฉ์ด ์์ฑ ๋ ๊ฒ ๊ฐ์์ง๋ง ๋๋ค ํจ์๊ฐ ์ฌ์ ํ ์คํจ๋ฅผ๋ณด๊ณ ํ๊ณ ์์ต๋๋ค. ๋ก๊ทธ ์ผ
2021/02/23 02:13:20 Created on Identity Server
2021/02/23 02:13:21 Failed to dial Join Server at "ttn-v3-js:///eu1.cloud.thethings.network": context deadline exceeded
2021/02/23 02:13:21 Rollback create on Identity Server failed: rpc error: code = DeadlineExceeded desc = context deadline exceeded
๋ฌธ์์ ์ ๊ณต๋ ํด๋ฌ์คํฐ ์ฃผ์๊ฐ ์๋ํ์ง ์๊ฑฐ๋ ์ปค๋ฎค๋ํฐ ๋คํธ์ํฌ์ ์ ์ฉ๋์ง ์์ต๋๋ค. ๋์ eu1์ ์ฌ์ฉํด์ผํฉ๋๋ค. ๋๋ค ํจ์๋ cloudwatch์ ์ค๋ฅ ๊ฒฐ๊ณผ๋ฅผ๋ณด๊ณ ํ์ง๋ง TTN ์ฝ์์ ํญ๋ชฉ์ ์์ฑํฉ๋๋ค.
๋๋ค ํจ์๋ ์ค๋ฅ๋ฅผ๋ณด๊ณ ํ์ง ์์์ผํฉ๋๋ค. ์ฌ๊ธฐ์ ์๋ ๋ฌธ์์๋ ์ปค๋ฎค๋ํฐ ๋คํธ์ํฌ์ ๋ํ ์ํ ํด๋ฌ์คํฐ ์ฃผ์๊ฐ ์์ด์ผํฉ๋๋ค.
ํ๋์จ์ด ๋ ๊ฒ์ดํธ์จ์ด๊ฐ ์ฌ๊ธฐ์ ๊ด๋ จ์ด ์๋ค๊ณ ์๊ฐํฉ๋๋ค.
๋ฌธ์ ์ ๋ฐ์ดํธ ๋ฐ ๋๋ค ํจ์ ์ ๋ฐ์ดํธ.
eu1์ด ํ ์คํธ ๋คํธ์ํฌ๋ก ์ฌ์ฉ๋์ง ์๋ ํ ์์ ์ฌํ ๋จ๊ณ๋ฅผ ์ฌ์ฉํ์ฌ ์ฝ๊ฒ ํ ์คํธ ํ ์ ์์ต๋๋ค.
๋ถํํ๋ ๋๋ค ํจ์๊ฐ Go!
๊ฐ์ฌ
@thinkOfaNumber ์๊ฒ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. AWS IoT Core ํตํฉ์ ๋ํ TTN V3 ์ง์์ ๋ฐฐํฌ ํ ์ค๋น๊ฐ๋์์ต๋๋ค. ์ฐ๋ฆฌ๋ ํ์ฌ ๋กค์์์ ์์ํ ์ ์๋๋ก The Things Stack ํด๋ผ์ฐ๋๊ฐ 3.11.x๋ก ์ ๊ทธ๋ ์ด๋๋๊ธฐ๋ฅผ ๊ธฐ๋ค๋ฆฌ๊ณ ์์ต๋๋ค.
๋ด๋ถ ์ฐธ์กฐ https://github.com/TheThingsIndustries/lorawan-stack-aws-integration/pull/21
๋น ๋ฅธ ๋ต๋ณ์ ๊ฐ์ฌ ๋๋ฆฌ๋ฉฐ, ์ง๊ธ์ ์ค๋น๊ฐ ์ ๋ ์ค ๋ชฐ๋์ต๋๋ค. ์ฐธ์กฐ ํ ์์๋ ๋ก๋๋งต์ด ์์ต๋๊น?
์ด์ ๋ฆด๋ฆฌ์ค๋์์ต๋๋ค. https://www.thethingsindustries.com/docs/integrations/aws-iot/default/deployment-guide/ ๋ฅผ ์ฐธ์กฐํ๊ณ CloudFormation ๋ฐฐํฌ ๋ฒํผ์ ํด๋ฆญํ๊ธฐ ์ ์ ์ปค๋ฎค๋ํฐ ๋ฅผ ์ ํํด์ผํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด์ ๋ฆด๋ฆฌ์ค๋์์ต๋๋ค. https://www.thethingsindustries.com/docs/integrations/aws-iot/default/deployment-guide/ ๋ฅผ ์ฐธ์กฐํ๊ณ CloudFormation ๋ฐฐํฌ ๋ฒํผ์ ํด๋ฆญํ๊ธฐ ์ ์ ์ปค๋ฎค๋ํฐ ๋ฅผ ์ ํํด์ผํฉ๋๋ค.