terraform-provider-newrelic
terraform-provider-newrelic copied to clipboard
newrelic provider missing the resource creation for synthetic monitoring of SSL certificate expiration
We are using newrelic as monitoring tool for our production cloud based application. The newrelic deployment on production is processed using terraform code. Now we have to add the monitoring of SSL expiration for our domain names. This functionality is present in new relic but the terraform resource creation for it is not present. The resource creation which is present for it in terraform is "newrelic_synthetics_monitor" but the type is present for SIMPLE, BROWSER, SCRIPT_BROWSER, and SCRIPT_API which is also present in newrelic but in the new view there are some additional types are present and SSL certificate is one of them.I have attached the screenshot of old and new view.
Please look into the issue as it is creating delay in our production deployment. Please suggest the alternate way to do this or please let us know the ETA for newrelic provider upgrade to add this attribute. I shall be very thankful to you.
Thank you,
Atul Mehta
Senior DevOps Engineer
Thanks for the suggestion @atul29mehta At the moment the API's we are using do not allow us to implement this functionality. The synthetics team at New Relic is creating a new API that will add this, but at the moment that's not available yet for all customers. Once it is, we will add this functionality to terraform.
This can be done using a newrelic_synthetics_monitor_script
resource and the script shown here: https://discuss.newrelic.com/t/relic-solution-monitoring-ssl-certificate-expiration/51240.
Thanks, I'll check it out.
On Sun, 30 Jan 2022 at 4:55 PM, Garry Jeromson @.***> wrote:
This can be done using a newrelic_synthetics_monitor_script resource and the script shown here: https://discuss.newrelic.com/t/relic-solution-monitoring-ssl-certificate-expiration/51240 .
— Reply to this email directly, view it on GitHub https://github.com/newrelic/terraform-provider-newrelic/issues/1585#issuecomment-1025122514, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASW2TRUTJVK7C6ZISEGARE3UYUN2ZANCNFSM5L26452Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@atul29mehta @garry-jeromson We've released V3 version of our provider which includes all of the new Synthetics features: https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/guides/migration_guide_v3
The SSL check is now available as a new resource: https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/resources/synthetics_monitor_cert_check
Please let us know if you have any questions. If you encounter any issues please don't hesitate to create a new ticket.
I'll close this ticket as the work has been delivered. Feel free to continue the discussion if needed.