-
Notifications
You must be signed in to change notification settings - Fork 13
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
digitalocean: update on Domain ends in a Replace(!?) that ends in Error #311
Comments
There are a few things here:
|
Thank you for the suggestion with 'deleteBeforeReplace' - I ended using it to fix my situation. I checked the DO API and I do not see indeed an 'update' on the domain record. Anyway, until (if!) something gets changed into the way DO Domain 'ipAddress' field is handled, I think that people should not use it and use their own separate A record. And maybe for safety, you could actually remove it from your modules :-) Feel free to close the bug if you consider so. Regards! |
I am not satisfied with this solution. Can I check if the domain exists and in this case only change DNS in this domain? |
This is tracked in pulumi/pulumi#8185 For the rest, I transferred the issue to |
I created a domain, like
Then, I removed that ipAdress line.
Code shows that it wants to replace it !
+- └─ digitalocean:index:Domain my.domain.com replace [diff: -ipAddress]
This seemed an error to me, but I said... ok, let's go on.
And since a replacement seems to be happening by creating first another record, of course(?) it fails:
error: Error creating Domain: POST https://api.digitalocean.com/v2/domains: 422 domain 'my.domain.com': name already exists
During my debugging - note that I actually wanted some IP to change, by creating a new droplet, I bumped into other strange things as well:
Maybe I don't know how to read it, but at first look it seems as if tries to replace the record with ... a similarly changed one? (i.e. the 2 entries are really the same, even if I redacted sensitive info)
And, before that, when it had to just change ipAddress:
Using Typescript, pulumi version v1.13.0
The text was updated successfully, but these errors were encountered: