Hi,
I think this is a bug, but please correct me if I'm wrong!
After installing and configuring the AWS IoT integration for The Things Stack in our AWS account with the cluster address au1.cloud.thethings.network
, I created a thing in AWS IoT Core. The CreateThingFunction returned an error: 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"
The documentation says that while the cluster address can be in au1, Identity Server API requests to any cluster other than eu1 will fail
.
I changed the stack so that the cluster address was eu1.cloud.thethings.industries
and it seemed to work in that things were created on ttn console au1.cloud.thethings.network, but the lambda function is still reporting failure. The logs show
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
The cluster address given in the documentation doesn't seem to work, or isn't applicable for community network. It appears eu1 has to be used instead. The lambda function reports an error result in cloudwatch, but creates things in the TTN console.
The lambda function shouldn't report an error. The documentation here should have a sample cluster address for the community network.
I don't think the hardware or gateways are relevant here.
Documentation updates and lambda function updates.
Could easily be tested by using the reproduce steps above so long as eu1 is not used as the test network.
Unfortunately not if the lambda functions are written in Go!
Thanks
Thanks @thinkOfaNumber, we have TTN V3 support for the AWS IoT Core Integration ready for deployment. We're currently waiting for our The Things Stack Cloud to be upgraded to 3.11.x so we can start the roll-out.
Internal reference https://github.com/TheThingsIndustries/lorawan-stack-aws-integration/pull/21
Thanks for the quick response, I didn't realise this wasn't ready now. Is there a roadmap somewhere I can refer to?
This is now released, please see https://www.thethingsindustries.com/docs/integrations/aws-iot/default/deployment-guide/ and be sure to select Community before clicking the CloudFormation deployment button.
Most helpful comment
This is now released, please see https://www.thethingsindustries.com/docs/integrations/aws-iot/default/deployment-guide/ and be sure to select Community before clicking the CloudFormation deployment button.