Open-balena on AWS

Hi,

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.

Best,
Sander

Hey @sanderb

Let’s say you have domain.com, you can then add an

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

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

export BALENARC_BALENA_URL=domain.com

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: https://www.twitch.tv/balenaio

Cheers

Thank you for the quick answer.

I did update as suggested, but it is still not working.

openbalena.myurl.com is pointing to the ip
*.openbalena.myurl.com has an alias to the first.

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

I get
network timeout at: https://api.xxxxxx.com/login_

Any help is appreciated.

Hey @sanderb,

With this configs, it would be setting https://api.openbalena.myurl.com/login

Could you confirm that you are setting the right address?

Cheers

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

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