AWS CDK to create a Fargate Load Balancer solution with an ssl certificate with an external DNS provider



I want to create a. ECS Fargate ApplicationLoadBalancer solution using a certificate for a Domain which is hosted on a external DNS provider (godaddy)

Here is my code:

    //create a new certificate in the certificate manager for the domain 

    const certificate = new acm.Certificate(this, ‘certificate’, {

      domainName: ‘’,

      validation: acm.CertificateValidation.fromDns(),



    new ecs_patterns.ApplicationLoadBalancedFargateService(this, ‘ECService’, {



      certificate: certificate,

      domainName: ‘’,

      listenerPort: 443,

      taskSubnets: {

        subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,



The error I get is:

Error: A Route53 hosted domain zone name is required to configure the specified domain name

How I can do what I want, not having a Route53 hosted domain, I hope the answer is not do it all manual ;)

1 Answer
Accepted Answer


Can you share version used? Typically I would look into GitHub repository and check why that error is triggered.

For instance, In that version, seems as domainZone needs to be provided too, apart from domainName.

As you may use a different version, the code logic may be different.

Eventually, could be that this construct pattern requires the domain to be on route 53, but hope to be wrong :)

Hope it helps ;)

profile picture
answered a year ago
profile picture
reviewed 14 days ago
  • hmmm, you are right, it seams there is no way to do that using the ApplicationLoadBalancedFargateService function

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