Open rulatir opened 5 days ago
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. It is tracked here: https://github.com/pulumi/pulumi-terraform-bridge/issues/2372. What's notable is that this aligns Pulumi with the upstream terraform provider. Importing the ASG also yields this diff in defaults there. We should try fixing up the resource there. I opened this upstream issue for it: https://github.com/hashicorp/terraform-provider-aws/issues/39308.
As a workaround you could roll back to v6.50.1
of the provider.
Alternatively, running pulumi up
should align the state without modifying the cloud resource. None of those parameters are part of the cloud state of that resource:
forceDelete
and forceDeleteWarmPool
are inputs for the DeleteAutoScalingGroup
and DeleteWarmPool
API calls. ignoreFailedScalingActivities
and waitForCapacityTimeout
are provider level settings for how to handle updates to the Auto Scaling Groups
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).