Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Up chooses ineligible certificate from acm #835

Open
3 of 4 tasks
codehimanshu opened this issue Oct 29, 2021 · 0 comments
Open
3 of 4 tasks

Up chooses ineligible certificate from acm #835

codehimanshu opened this issue Oct 29, 2021 · 0 comments

Comments

@codehimanshu
Copy link

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

Description

ApiDomainProduction fails to create.
Error:

Resource handler returned message: "Invalid request provided: The specified SSL certificate doesn't exist, isn't in us-east-1 region, isn't valid, or doesn't include a valid certificate chain. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidViewerCertificate; Request ID: xxxxxxxxxxxx; Proxy: null) (Service: ApiGateway, Status Code: 400, Request ID: xxxxxxxxxxxx, Extended Request ID: null)" (RequestToken: xxxxxxxxxxxx, HandlerErrorCode: InvalidRequest)

Upon checking more details, I found that I have multiple certificates for same domain in my AWS Certificate Manager, out of which, one is Eligible, and rest are Ineligible, because somehow they failed to renew.
And in the cloudformation template, up chooses to pick the ineligible certificate somehow.
Although this is not the case always, I deployed the same config for other subdomain, and it worked fine. But this seems to be working randomly.


Steps to Reproduce

Create a new certificate in your AWS Certificate Manager. Now that you have two certificates for a single domain (one is eligible and another ineligible), try deploying a new lambda function. Up will create all the resources except APIDomainProduction.

Slack

Join us on Slack https://chat.apex.sh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant