serverless-domain-manager icon indicating copy to clipboard operation
serverless-domain-manager copied to clipboard

Updating ACM certificate ARN doesn't make any changes

Open abbathaw opened this issue 3 years ago • 5 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Support Question

Question I have a new ACM certificate (aws-managed) and I want to update the app's API gateway custom domain endpoint configuration. After updating the serverless configuration with the new certificate ARN, and deploying, there were no changes being reflected on the endpoint configuration in the API Gateway (Custom Domain names) UI. The config on the UI still showed that the old certificate was being used.

I eventually manually updated the configuration to the new certificate from the console UI. I redeployed again, no changes happening from the plugin.

Command Run sls deploy

Console Output (anonymized)

Serverless Domain Manager: Info: Found apiId: xxxxxxxx for xxxxx.myapp.io
Serverless Domain Manager: Info: Updated API mapping from 'api'
                     to 'api' for xxxxx.myapp.io
Serverless Domain Manager: Info: 
Serverless Domain Manager Summary
Serverless Domain Manager: Info: Distribution Domain Name
Serverless Domain Manager: Info:   Domain Name: xxxxx.myapp.io
Serverless Domain Manager: Info:   Target Domain: d-xxxxxxx.execute-api.us-west-2.amazonaws.com
Serverless Domain Manager: Info:   Hosted Zone Id: xxxxxxx
Done in 19.62s.

Domain Manager Configuration

custom:
  customDomain:
    basePath: api
    stage: ${self:provider.stage}
    endpointType: regional
    domainName: ${self:custom.configurations.${self:provider.stage}.domainName}
    certificateName: '*.myapp.io'
    certificateArn: ${self:custom.configurations.${self:provider.stage}.certificateArn} // this is the value that was updated
    createRoute53Record: false

Versions

  • Domain Manager version(s): v5.0.0
  • Node/npm version: Node 12.15.0
  • Serverless Version: v2.8.0
  • Lambda Code : javascript

abbathaw avatar Oct 26 '20 15:10 abbathaw

I ran to this same issue. Changing the ACM certificate ARN in configuration did not update the certificate for the API GW domain automatically. Had to do that manually from AWS console.

eeroniemi avatar Nov 24 '20 12:11 eeroniemi

I ran into the same issue ☝️.

endre-synnes avatar Jan 26 '21 10:01 endre-synnes

Same problem "serverless": "^2.67.0" "serverless-domain-manager": "^5.2.0" node: 14

vsheyanov avatar Dec 16 '21 15:12 vsheyanov

Same problem here

Eagleman7 avatar Dec 16 '21 15:12 Eagleman7

Removing certificateName and adding certificateArn also does not solve this.

staff0rd avatar Jul 20 '22 09:07 staff0rd

Hi @abbathaw

Hope you have solved this issue.

We are not supporting 5.x any more please try our latest version 6.x and let us know in case of any issues

rddimon avatar Feb 06 '23 21:02 rddimon