-
Notifications
You must be signed in to change notification settings - Fork 277
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_app
redeploys even though no env
variables changed
#782
Comments
digitalocean_app
redeploys even though no env
variables changed
I also ran into this issue. Is there an eta when this can be fixed? |
Any updates here ? |
Any new information? |
Thank you all for bringing this issue to our attention. The fix mentioned in the #514 was to Suppress diff when env type is GENERAL. However, if the values for any SECRET vars are not the same encrypted values returned by the API, it will result in a diff. I will attempt to reproduce this issue to investigate further. |
@scotchneat are you able to reproduce the problem and has an idea when a fix could be releases ? |
@driedel1987 yes. When using the env vars with The problem is, if the same plain-text value sent in the initial I realize this scenario isn't properly covered in the documentation. I'll see if I can elaborate on this in the documentation and probably an example config |
@scotchneat thanks for your answer. But I have the same behavior if i only use “general” as type in my app (pulumi/pulumi-digitalocean#308). I am using the following code to roll out my app/worker in digital ocean:
It creates the app/worker successfully in digital ocean without using any type of secret. But if I try an update directly after the creation of the app, Pulumi recognizes changes which are not present. I am using the same function for updating as I am using for creation (see above). The Preview shows the following output in terminal for example: It seems that Pulumi wants to change the order or something like that. If I execute the preview, it runs in a timeout.
|
Thanks for the details @driedel1987. I realize you're sharing only a snippet of the code and the diff output, but what stands out in the planned change is that the env vars listed in your code are supposed to be changed to other values (e.g. However, since that's beyond the function or control of this provider, I'd like to avoid confusing the experience from the initial request in this issue with the behavior/interaction between pulumi and the DO Terraform provider. In the pulumi issue you referenced, @stack72 points to this issue being related to the behavior experienced in the pulumi library. @stack72 could you please share more details about the interaction? If it is beyond the experience described by the initial reporter of this issue, I think it makes more sense that you create a new issue so the topic can be specific to the pulumi > digitalocean provider integration. |
are there any workarounds for the |
@scotchneat Sorry I didn't see the notifications for this come through. I ended up changing everything to "general" rather than "secret" which almost fixed my issue but not completely. I have three environments (dev/staging/prod) powered by the same module and for some reason the staging environment always retriggers a change and deployment stating that something in the env block has changed. However, if that were the case then both the other two environments should also be triggering a change and deployment. I'm not sure what files or information to attach but I'm using Terraform without any abstractions beyond it running in a Docker container locally. |
Any updates or new workarounds on this? I am still facing this issue. |
Looks like a duplicate of #869 |
We've pushed up an example that offers a workaround in #1030 We are aware this workaround adds a few more manual steps, but it should mitigate the issue enough until we find a better solution. Please feel free to offer feedback in that PR. |
Let's keep this issue open until it is fixed! |
Bug Report
Describe the bug
The
digitalocean_app
resource thinks that theenv
arguments are changing on every Terraform apply. It seems to only happen when theenv
are of type "SECRET" rather than "GENERAL".Affected Resource(s)
Expected Behaviour
It should not redeploy the app.
Actual Behaviour
It redeployed the app.
Steps to Reproduce
Once I have the below app deployed to Digital Ocean, if I run
terraform apply
all of the environment variables with the type "SECRET" show as being changed and it forces a rebuild.Terraform Configuration Files
I'm running Terraform v1.1.4 and v2.17.0 of this library.
References
This seems to be the same issue:
#514
The two most recent commenters after the issue closed seem to be experiencing a similar issue to me.
The text was updated successfully, but these errors were encountered: