-
Notifications
You must be signed in to change notification settings - Fork 160
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
Beanstalk environment settings always diff #920
Comments
Upstream-related issues: |
Another repro code to try if the one in the original post doesn't work - https://gist.github.com/clstokes/75162674b24a2f35c4c35e52edac8429. Steps
|
+1 to this fix. I've been "working around" this problem by having a config variable
When I need to overwrite the changes I The significant downside to this approach is you cannot detect configuration drift. You have zero human consumable ways to tell what's going to happen to the environment during the run since EVERYTHING looks changed. |
In the original repro, what I see is that any inputs that are ARNs get translated into just the naked IDs by the AWS APIs. So the inputs are ARNs and outputs are IDs and then subsequent previews show a diff. If you change |
Note that this particular issue appears to be hashicorp/terraform-provider-aws#280 (comment). I'm not positive that itself addresses all of the cases raised so far - if others have repros of beanstalk diffs unrelated to ARN/ID changes, please do share the repro so we can look into those seperately. |
Here's another repro: import pulumi
import pulumi_aws
app = pulumi_aws.elasticbeanstalk.Application("app")
env = pulumi_aws.elasticbeanstalk.Environment("env",
application=app.name,
solution_stack_name=pulumi_aws.elasticbeanstalk.get_solution_stack(
most_recent=True, name_regex=r"64bit Amazon Linux .+ running Docker .+"
).name,
settings=[
{
"namespace": "aws:elasticbeanstalk:customoption",
"name": "MyOption",
"value": "Foo"
},
]
) Deploying once, then running
And indeed |
It turns out, this kind of option doesn't appear to get persisted in Beanstalk itself at all - it is not returned by |
I'm going to close this out and continue tracking the few different issues identified here in other issues.
If anyone sees other cases of unexpected diffs with Beanstalk that are not addressed by any of the above, please do open a new issue with a repro! |
Beanstalk Environment settings always show a diff after the first
up
.Code to reproduce
https://gist.github.com/clstokes/a2ad22a0d9c0ede138f4d56383a67052
Steps to reproduce
pulumi up
the code abovepulumi preview
- observe diff of environment settingsThe text was updated successfully, but these errors were encountered: