Skip to content
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

Migrating to Pulumi v0.17.23 and newer #2971

Closed
pgavlin opened this issue Jul 22, 2019 · 2 comments
Closed

Migrating to Pulumi v0.17.23 and newer #2971

pgavlin opened this issue Jul 22, 2019 · 2 comments
Labels
area/cli UX of using the CLI (args, output, logs) area/providers impact/breaking Fixing this issue will require a breaking change

Comments

@pgavlin
Copy link
Member

pgavlin commented Jul 22, 2019

As of Pulumi v0.17.23, the detection of differences between the actual and desired state of a resource is left entirely up to that resource's provider. While in general this provides many improvements--in particular, Pulumi is better able to detect and respond to changes made out-of-band, and is able to import resources for management by Pulumi--it does expose Pulumi programs to bugs in providers that may detect changes even when none are present. The most common cause of this issue is improper or unexpected normalization of values.

As of this writing, there are several known provider issues that are exposed by Pulumi v0.17.23:

  1. API server normalization of values is causing a preview to show changes when one is not expected in testing. pulumi-kubernetes#644
  2. TaskDefinition: normalization of the memory value causes unexpected changes pulumi-aws#667
  3. aws.apigateway.RestApi: unexpected diffs in name and binaryMediaTypes pulumi-aws#668
  4. No local code updated - preview shows update cluster and replacement of ALL resources pulumi-gcp#184
  5. aws_s3_bucket: replication_configuration shows changes when there are none hashicorp/terraform-provider-aws#665

Workarounds for (2), (3), and (4) are described in the issues. (1) and (5) require bugfixes in the respective providers. In these cases, the PULUMI_ENABLE_LEGACY_DIFF environment variable can be set to 1 in order to use the legacy diffing approach until fixes are available.

@pgavlin pgavlin added area/cli UX of using the CLI (args, output, logs) area/providers impact/breaking Fixing this issue will require a breaking change labels Jul 22, 2019
@jen20
Copy link
Contributor

jen20 commented Jul 23, 2019

hashicorp/terraform-provider-aws#158 is another example of this - though it manifests only with a misconfiguration in code.

@mikhailshilkov
Copy link
Member

It sounds like this one can be closed. Feel free to reopen if it still has any value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli UX of using the CLI (args, output, logs) area/providers impact/breaking Fixing this issue will require a breaking change
Projects
None yet
Development

No branches or pull requests

3 participants