-
Notifications
You must be signed in to change notification settings - Fork 121
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
[Wishlist] allow updating of CloudFront certificates too #41
Comments
From an API perspective, what's involved in updating a cloudfront cert? If On Tue, Apr 5, 2016 at 3:47 PM, Guillaume Rischard <[email protected]
"I disapprove of what you say, but I will defend to the death your right to |
Thank you! It looks like you need to update the ViewerCertificate part of the CloudFront distribution config: Maybe https://boto3.readthedocs.org/en/latest/reference/services/cloudfront.html#CloudFront.Client.get_distribution_config to get the config object, get the IamCertificateId to check for expiration, then update the object to set CloudFrontDefaultCertificate to false and IamCertificateId to the new one, then https://boto3.readthedocs.org/en/latest/reference/services/cloudfront.html#CloudFront.Client.update_distribution to set the new config. The port is irrelevant for cloudfront, there's only one certificate per distribution. |
PR #44 covers this, but it needs a bunch of testing, I don't have CF distribution set up to make sure this works. |
No description provided.
The text was updated successfully, but these errors were encountered: