custom domain in CloudFormation REST API using a wildcard certifcate acm

0

Hello,

I get this error while trying to setup a REST API custom domain in CloudFormation, I need help

I am using a wild card Certificate for accounts.Youbes.com to setup the api.accounts.Youbes.com

	Resource handler returned message: "Invalid request provided: Unable to associate certificate arn:aws:acm:us-east-1:724512483715:certificate/7d49b244-fae1-454d-8010-21e5442b43c5 with CloudFront. This error may prevent the domain name api.accounts.Youbes.com from being used in API Gateway for up to 40 minutes. Please ensure the certificate domain name matches the requested domain name, and that this user has permission to call cloudfront:UpdateDistribution on '*' resources. (Service: ApiGateway, Status Code: 400, Request ID: 724ce658-7b22-4eab-b5f5-d214a8121bcd, Extended Request ID: null)" (RequestToken: fbb190f6-65aa-c7f0-0d17-5e22eb50adc2, HandlerErrorCode: InvalidRequest)

Sample Code

  YoubesAPICustomDomainName:
    Type: AWS::ApiGateway::DomainName
    Properties:
      DomainName: !Ref CustomDomainName
      CertificateArn: !Ref CustomDomainACMARN
      # RegionalCertificateArn: !Ref CustomDomainACMARN
      EndpointConfiguration:
        Types: [EDGE]

Regards

No Answers

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