Closed keymon closed 7 years ago
Hi, In which version of terraform is it fixed? I am unable to update the certificates I am getting this error:-
BadRequestException: Invalid patch path '/certificate_body' specified for op 'replace'. Must be one of: [/certificateName, /certificateArn]
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Affected Resource(s)
aws
withaws_api_gateway_domain_name
Terraform Configuration Files
Expected Behavior
When you change the content of the certificate, it should change the certificate upstream.
Actual Behavior
It does not work, and it fails with this error:
Steps to Reproduce
Create a API Gateway domain name with one certficate. Try to rerun that with a different certificate.
Important Factoids
The implementation is wrong. Actually there is not a programmatic way of rotating the certs of a API gateway domain name as it is mention in the documentation:
Given you cannot rotate the certificate with API calls, I do not really know what should be the actual behaviour.
I suggest that we add an option of
force_update: true
, so that it will delete and create the resource to change the certificate if it is set to true, or fail with an error reporting that it must be changed manually otherwise.References
3675