-
Notifications
You must be signed in to change notification settings - Fork 156
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
[import] AWS autoscaling group import and subsequent up
tries to fix defaults to actual default values
#4457
Comments
I'm going to move this to the AWS repo as it's the provider that determines what the input values after import looks like. The engine currently has no real concept of defaults. Having said that, there's a few issues of this shape and providers may need to sync up with core to work out how to actually support defaults like this in a consistent way that works. |
Can this be worked around somehow? I must emphasize that by "work around" I don't mean "give up", i.e. "just let pulumi fix those defaults". (Ceterum censeo, "real concept of defaults" is a fundamental domain concept for software like pulumi, i.e. software that manages configurations). |
Hey @rulatir sorry you're running into this! This is caused by a recent change that was rolled out in v6.51.0. As a workaround you could roll back to Alternatively, running
|
Fix a regression in the import experience on aws.autoscaling.Group. Specifically the conflict between undefined and default values that `pulumi import` used to detect is no longer a conflict by automatically injecting DiffSuppressFunc for the relevant properties. Fixes #4457
Fix a regression in the import experience on aws.autoscaling.Group. Specifically the conflict between undefined and default values that `pulumi import` used to detect is no longer a conflict by automatically injecting DiffSuppressFunc for the relevant properties. Fixes #4457
This issue has been addressed in PR #4510 and shipped in release v6.53.0. |
I upgraded to 6.54.0 and tried to run
EDIT: I tried to run
However, this had no effect on subsequent |
Pulumi's using a provider version 5.61.0 here that doesn't have the fix yet. Would it be possible to upgrade to 6.54.0 before proceeding? |
I assumed that was just a recorded reference to the version the resource's representation in the state was created with. I updated the provider with pnpm and |
IN some cases Pulumi uses the provider version that's written into your state to manage the said resource. Do you have references to 6.51.0 in |
The diff above tries to assign concrete values to properties that are either not even present in the AWS console for this resource, or set to "Default". "Default" is semantically distinct from any concrete value. It must be assumed to mean "Auto", i.e. its effective value can depend in documented or undocumented ways on documented or undocumented other properties of this or related resources. In the output of |
For this particular resource, and these particular values, there will be no difference to your cloud in accepting the diff as TF code will populate these values anyway before doing Create/Update calls. I'm starting to think that the evidence points to the bug is indeed fixed in the latest version of the provider, but since stack editing is not working for you I'd recommend accepting the diff with
There is also pulumi/pulumi#9878 that can be helpful to up-vote to prioritize making upgrades easier. I think there isn't much else we can do for this case in pulumi-aws at the moment unfortunately. |
What happened?
I imported an autoscaling group with pulumi import, added the generated code to the pulumi program, and issued
pulumi preview
.Expected: no changes.
Actual: pulumi insists on fixing some properties that are set to "Default" in the cloud reality to their respective actual default values. This is undesirable.
I inspected the state using
pulumi stack export
, and all these properties arenull
in the state after import, and they are not specified in code either. If the state saysnull
and the cloud reality says "Default" (as an option selected in a select widget in the AWS Console), and the program says nothing, then where doesfalse
or"10m"
even come from?Example
Import command:
Generated code:
Output of
pulumi about
Note about the last warning: I chose
pnpm
duringpulumi new
; it seemspulumi about
can't handle that yet.Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: