App Runner Port is not honored

0

Dear Support , We are using App Runner to run our dockerized spring boot app and would want to expose a particular port at which the service responds to. However the domain that exposed from the App Runner is without the port that has been configured so this means that it works on a default secure port ie 443. Is this a bug ? so this means that App Runner service is secured even without the basic authentication set up ? Please kindly clarify Thanks and Regards Thulsi Doss Krishnan

2 Answers
0

App Runner includes fully managed TLS with no setup needed. App Runner automatically renews the certificates before their expiration date. The port configured on the App Runner service is the port the application listens on, which is mapped to the public 443 port automatically.

AWS
Noah_L
answered a year ago
0

Many thanks @Noah L for the quick response. There is an issue in scrapping the spring boot metrics running in app runner with the App runner Domain.

So in my Prometheus configuration i have this configuration

  • job_name: 'spring-actuator' metrics_path: '/actuator/prometheus' scheme: https scrape_interval: 5s static_configs:
    • targets: ['z9ynuwgrpt.us-east-1.awsapprunner.com']

how when i see the target on prometheus i get the following error

EndPoint https://z9ynuwgrpt123.us-east-1.awsapprunner.com/actuator/prometheus DOWN Error server returned HTTP status 404 Not found

Please note my prometheus is a docker image running in an aws EC2 instance.

Any clues as to why prometheus is showing an error when it is trying to scrape metrics from the App Runner endpoint

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions