Register Externally hosted app in PCF Service Registry

186 views Asked by At

I am trying to add an ASP.NET 4.x app hosted externally (using AWS Elastic Beanstalk) into the Service-registry of an existing PCF. Edit: Is this possible? If so, can someone give me an example about how this can be done

2

There are 2 answers

0
Jop.pop On BEST ANSWER

The comment by Daniel Mikusa is very appropriate for how I achieved this.

For Pivotal SCS, you would want to create a service instance (if you don't have one already), then create a service key for your external app. That will give you all of the binding info/creds you need to connect from your remote service. A service key is the same as binding a service to an app, except it's not tied to an app so it works well for situations like this. Just give your service key a good name, so you know that it's being used by an external app when you come back and see it a year from now

4
Tim On

Assuming you have network connectivity in all directions between apps in PCF and the external app, yes this should be quite possible.

However, if you're using Spring Cloud Eureka, your externally-hosted app will need to get valid OAuth credentials so that it can authenticate prior to registering.