-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
provider/digitalocean: Add monitoring option to digitalocean droplets #13494
Conversation
I stand corrected. Currently it doesn't look like you can query the droplet to see if monitoring is enabled. |
Closes #13376. |
Hi @joshpurvis Thanks so much for the contribution here - in it's current format, I don't think I can merge it. There are a few reasons for this:
You pointed both of these things out of course, but I think we may need DigitalOcean to provide a fix for #2 and we can easily set #1 ourselves :) What do you think? Paul |
Yep I tend to agree. I've created a support ticket with Digitalocean. |
This is what DO responded with to me after I looked into it. |
@joshpurvis It looks like DO has included the required field in the features block "features": [
"backups",
"private_networking",
"ipv6",
"monitoring"
], Might also have to move this PR to the new repository as well |
Hello @joshpurvis, and all! Thank you for the contribution, we would love to be able to support this in the DigitalOcean provider! However, with the migration of all of our providers to their new GitHub organizations (https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10), the DigitalOcean provider is now located at: https://github.com/terraform-providers/terraform-provider-digitalocean. As such, I'm going to close this PR, as we cannot merge it in it's current state. If you wouldn't mind migrating this PR over to the new repository, I will happily review it for you (Just tag me as a requested reviewer). Thanks again, and sorry for the inconvenience! |
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. |
This adds the monitoring option described in the DO API which was added to
godo
on this commit.Caveats:
As far as I can tell, the current DO API doesn't allow you to turn off monitoring or read the monitoring state.
Due to this, I wasn't able to come up with a way to properly confirm that the option was applied on the other end after state is read.
Also, I assumed forcing new on a new option would be a bad idea in this case, so reverting the flag to false will have no effect on existing resources.
I'm new to go-- feel free to let me know if this needs some work.