Open-balena on AWS



I’m following the getting started tutorial for setting up open-balena on my amazon server.

I managed to do the parts until DOMAIN configuration. I think I added the CNAMES by setting up A records and pointing them to the IP address of my instance. However, I can not yet connect with balena login. Can somebody explain how to setup the CNAME configuration or explain what might be the problem? I do get a timeout when trying to connect.



Hey @sanderb

Let’s say you have, you can then add an

  • A record called openbalena and pointing to the IP address.
  • CNAME *.openbalena and make it an alias of

Then you can change your balena-cli location to the domain with the command:


Then try running balena login and it should point to your domain.

Let me know if this helps.
PS: At 4:30 UTC we will run a live streaming showing how to setup an openBalena instance here:



Thank you for the quick answer.

I did update as suggested, but it is still not working. is pointing to the ip
* has an alias to the first.

I’m also quite new to EC2, so something might be wrong there?

I get
network timeout at:

Any help is appreciated.


Hey @sanderb,

With this configs, it would be setting

Could you confirm that you are setting the right address?



Think I jumped that hurdle. A new one in the cert section. Almost there I hope.

ERR_TLS_CERT_ALTNAME_INVALID: request to failed, reason: Hostname/IP does not match certificate’s altnames: Host: is not in the cert’s altnames: DNS:*.openbalena.local