[AngularJS] Re: Angular AWS EC2 IP address service discovery
Hi Michael, Well, in the angular part, you can inspect your host, and know how it's started. From there you shoul dbe able to 'calculate' the api server's address. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Angular AWS EC2 IP address service discovery
The Services that get spun are isolated and on a per client basis. Its a simulation environment, completely standalone. The client is given this specific IP/URL, we do this manually. That's not really important. This isn't a cluster of services using one global DNS. They are isolated instances. When the Docker container boots up. I can query at run time the service for its IP address so it can then point any endpoint requests back to itself. I don't need DNS for this, the IP address would do or the host name (_xxx_xxx_.awsblahblah.amazon.com for example) so the angular code running in the client knows how to get back to machine its running on to get to the API. In the future this could be on a Route66 DNS address but right now its an MVP and it needs to talk to itself. I have a solution, I just wondered if anyone else had a possible way to do it. Seems not. Thanks for the advice MB On Wednesday, 26 April 2017 21:11:27 UTC+10, Sander Elias wrote: > > Hi Michael, > > You confuse me... How are you going to open your angular app? You can't > boot an app, unless you have an ip or DNS-name tied to it. You hardly can > ask an app it's ip, before it's started, right? Or am I missing something? > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Angular AWS EC2 IP address service discovery
Hi Michael, You confuse me... How are you going to open your angular app? You can't boot an app, unless you have an ip or DNS-name tied to it. You hardly can ask an app it's ip, before it's started, right? Or am I missing something? Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Angular AWS EC2 IP address service discovery
Thanks sander, would you have an example of how to do this? I'm not sure how I could get my config inside angular to use AWS DNS. The API endpoint is on the same host and the host name is dynamic and they are pretty much a standalone microapp/service so they only talk to themselves, people test on them they get disposed. I don't need to save or get state from a third party service. So I don't think AWS DNS would be suitable here. Maybe I'm wrong? I realise I can have a multi container service in place as another option but I still would need to configure the Angular service to use the endpoint URL somehow from the containers starting up. Plus thats overkill and costs more money on AWS. 8-) Thanks MB On Wednesday, 26 April 2017 16:43:23 UTC+10, Sander Elias wrote: > > Hi Michael, > > Usually, this is something you arrange inside your webserver, in this > case, it's Nginx I believe. And you use the AWS DNS to hook it up to a > domain name. Then in your app, you can simply inspect the headers if you > need it for some reason in your app itself. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Angular AWS EC2 IP address service discovery
Hi Michael, Usually, this is something you arrange inside your webserver, in this case, it's Nginx I believe. And you use the AWS DNS to hook it up to a domain name. Then in your app, you can simply inspect the headers if you need it for some reason in your app itself. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.