Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on it for 2 days. Path specified in manifest file is not working correctly #5795

Closed
shain-digix opened this issue Apr 25, 2024 · 4 comments
Labels
guidance Issue requesting guidance or information about usage

Comments

@shain-digix
Copy link

shain-digix commented Apr 25, 2024

I have a cluster with 3 services. Below are the configuration for service manifest file

  1. Service 1 - api1
    environments: dev: http: path: '/' healthcheck: '/api/healthcheck'

  2. Service 2 - api2
    environments: dev: http: path: '/' healthcheck: '/healthcheck'

  3. Service 3 - api3 - Newly Added
    environments: dev: http: path: '/orders-api' healthcheck: '/api/healthcheck'

This is how the HTTP listener for new api3 looks like:

Screenshot at Apr 25 23-47-08

When I enter the url, ALB_URL/orders-api it is not going to the new service api3.

Any idea where did I go wrong?

@shain-digix shain-digix changed the title Path specified in manifest file is not working correctly Stuck on it for 2 days. Path specified in manifest file is not working correctly Apr 25, 2024
@spencer-leopold
Copy link

spencer-leopold commented Apr 25, 2024

I think the load balancer rules are exact matches, so you would need a rule forwarding /orders-api in addition to /orders-api/*.

Have you tried setting the http.path to /orders-api/* and then add http.additional_rules.path: '/orders-api'? Not sure if including the wildcard is valid or not in the copilot manifest.

@spencer-leopold
Copy link

Looks like copilot should create a rule for /orders-api OR /orders-api/* just by having http.path set to /orders-api.
Are you importing a load balancer and your screenshot is a rule you added manually?

@dannyrandall dannyrandall added the guidance Issue requesting guidance or information about usage label Apr 26, 2024
@shain-digix
Copy link
Author

Thanks @spencer-leopold . Solved it

http:
      path: '/orders-api'
      healthcheck: '/orders-api/healthcheck'
      additional_rules:
        path: '/orders-api'

@shain-digix
Copy link
Author

Solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Issue requesting guidance or information about usage
Projects
None yet
Development

No branches or pull requests

3 participants