Https scrapping aws app runner url with prometheus

Hello team , we are trying to scrape metrics from AWS App runner , which by default works on secure port ie 443 . So to scrape the secure end point we tried giving the generated certs and key.
Here is the prometheus.yml that we used
scrape_configs:

The job name is added as a label job=<job_name> to any timeseries scraped from this config.

  • job_name: “prometheus”

    metrics_path defaults to ‘/metrics’

    scheme defaults to ‘http’.

    static_configs:
    • targets: [“localhost:9090”]
  • job_name: “spring-actuator”
    scrape_interval: 5s
    metrics_path: ‘/actuator/prometheus’
    scheme: https
    tls_config:
    cert_file: /etc/prometheus/certs/prometheus.csr
    key_file: /etc/prometheus/certs/prometheus.key
    insecure_skip_verify: false

    metrics_path defaults to ‘/metrics’

    scheme defaults to ‘http’.

    static_configs: