pulumi-aws
pulumi-aws copied to clipboard
Enable zero default schema version in AWS
Roll out https://github.com/pulumi/pulumi-terraform-bridge/pull/2081 to AWS.
Part of https://github.com/pulumi/pulumi-terraform-bridge/issues/2133
Does the PR have any schema changes?
Looking good! No breaking changes found. No new resources/functions.
Maintainer note: consult the runbook for dealing with any breaking changes.
I know this has been taken through many providers for soaking, but I am still slightly worried that this fix extends the reach of https://github.com/pulumi/pulumi-terraform-bridge/issues/1667 related bugs. Does it fix some known issues in AWS or we just take it on preemptively? I'd be a lot more comfortable fixing 1667 first and then shipping this, but if it fixes known issues that'd be good reason to maybe rush it.
@flostadler for a second opinion.
@VenelinMartinov I wonder if we could opt-in specific resources only? That way the blast radius would of possible issues would be very limited.
I initially wondered whether it fixes issues like this: https://github.com/pulumi/pulumi-aws/commit/3ff4fa4ddc54bcef6d043e7c62e0e881c6ecdaa5#diff-34c57e622183cb0d8dd0d3f9eaa0861b3340120e9b2ad811bac7ac7be4cea4b1R2195-R2206 But turns out that one is caused by https://github.com/pulumi/pulumi-terraform-bridge/issues/1667 as well.
I agree with @t0yv0 that this could potentially open up more issues around https://github.com/pulumi/pulumi-terraform-bridge/issues/1667. What I'm not sure about is what's worse, not running the migration or running it with distorted state. Both are wrong, but IMO doing the following has the least potential for disruption:
- Only opt in specific resources for
ZeroDefaultSchemaVersionthat need it. If we're not aware of any then we could just leave it disabled. - Fix https://github.com/pulumi/pulumi-terraform-bridge/issues/1667
- Enable
ZeroDefaultSchemaVersionfor all resources
What I'm not sure about is what's worse, not running the migration or running it with distorted state
I think you've nailed the question here. Happy to go with either. I am not aware of any resources which needs this but also all other providers have this enabled by default and we have not had any issues with it.
Closing until https://github.com/pulumi/pulumi-terraform-bridge/issues/1667 is fixed to revisit then or else when we have evidence of issues needing this, to roll out on per-resource basis.