Class PreferredUrlResolver
java.lang.Object
com.cloudforge.core.local.PreferredUrlResolver
Resolves the best "open this application" URL from a deployed stack's CFN outputs.
Shared by cloudforge-manager's inventory (live AWS/LocalStack/MiniStack stacks)
and cfc-testing's post-deploy hint (freshly deployed stack's own output map) so both
apply the exact same precedence — edge hostnames for local emulators first, then AWS-style
ApplicationUrl/LoadBalancerDNS/Url outputs — instead of two
implementations drifting apart.
- Since:
- 3.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCFN output key CloudForge stacks tag with the deploying application's id. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasLocalEmulatorBrowserUrl(Map<String, String> outputs) static StringmergeLocalStackHostUrl(String appUrl, String localUrl) static StringpreferredUrl(Map<String, String> outputs) static booleanrequiresLocalStackPathPrefix(String applicationId) Jenkins (and Manager) on LocalStack use--prefix=/_aws/elb/{name}; the host-mapped port alone returns Jetty 404 unless the prefix is included.
-
Field Details
-
OUTPUT_APPLICATION_ID
CFN output key CloudForge stacks tag with the deploying application's id.- See Also:
-
-
Method Details
-
preferredUrl
-
hasLocalEmulatorBrowserUrl
-
requiresLocalStackPathPrefix
Jenkins (and Manager) on LocalStack use--prefix=/_aws/elb/{name}; the host-mapped port alone returns Jetty 404 unless the prefix is included. -
mergeLocalStackHostUrl
-