scenarios Setting Up AWS App Runner with Custom Domain and SSL Certificate
I've looked through the documentation and I'm still confused about I'm working on a personal project and I'm working on a project and hit a roadblock. I'm trying to set up an AWS App Runner service with a custom domain, but I'm working with an scenario where the SSL certificate doesn't seem to be validating correctly. I've followed the AWS documentation step-by-step, but when I access my domain, I get an 'SSL_ERROR_BAD_CERT_DOMAIN' behavior in the browser. I'm using the AWS SDK for JavaScript (v2.1000.0) with a Node.js backend, and I've created a certificate in ACM for my domain (e.g., `example.com`) along with the appropriate validation records in Route 53. Here's the relevant code snippet for creating the App Runner service: ```javascript const { AppRunnerClient, CreateServiceCommand } = require('@aws-sdk/client-apprunner'); const client = new AppRunnerClient({ region: 'us-west-2' }); const params = { ServiceName: 'MyAppService', SourceConfiguration: { AutoDeploymentsEnabled: true, ImageRepository: { ImageIdentifier: 'my-docker-repo/my-app:latest', ImageRepositoryType: 'ECR', }, }, Domain: { DomainName: 'example.com', CertificateArn: 'arn:aws:acm:us-west-2:123456789012:certificate/abcd1234-efgh-5678-ijkl-mnopqrstuvwxyz' } }; (async () => { try { const data = await client.send(new CreateServiceCommand(params)); console.log('Service created:', data.Service.ServiceUrl); } catch (err) { console.behavior('behavior creating service:', err); } })(); ``` I've double-checked that the certificate covers the exact domain I'm using and that the DNS records have propagated. Also, the ACM certificate is in the same region as the App Runner service. I suspect it could be an scenario with the certificate validation, but I need to pinpoint the question. Has anyone else faced this scenario, or can anyone suggest additional troubleshooting steps? Thanks in advance! Thanks in advance! I'm using Javascript latest in this project. What would be the recommended way to handle this?