-
Notifications
You must be signed in to change notification settings - Fork 5
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
FileFormat resource always shows changes and fails on update #174
Comments
Hi @ixti - thank you for filing this bug. I have successfully duplicated this behavior. We will take a look when we can. |
Hi @ixti - I have looked into this and it seems to be a manifestation of this upstream bug, as well as this one. It turns out that when the fileformat is created, it is created with default values for a set of optional fields - using your code as an example, the file format full object looks like this after creation:
and then on the second ...The really funny part here is that a third update to the stack with no code changes succeeds as you would expect. WorkaroundThe good news is there's a workaround - if you set the following "optional" fields to the expected default, your stack updates will always detect the expected value and avoid this issue.
|
What happened?
Everytime I run
pulumi up
FileFormat reports changes and tries to update. Update fails with:Steps to reproduce
Create index.ts
Run deploy twice
Expected Behavior
Actual Behavior
Output of
pulumi about
CLI
Version 3.51.0
Go Version go1.19.4
Go Compiler gc
Plugins
NAME VERSION
aws 5.26.0
aws-native 0.45.0
nodejs unknown
snowflake 0.15.0
Host
OS gentoo
Version 2.9
Arch x86_64
This project is written in nodejs: executable='/run/user/1000/fnm_multishells/6948_1673536151552/bin/node' version='v18.6.0'
Current Stack: production
TYPE URN
pulumi:pulumi:Stack urn:pulumi:production::tatari::pulumi:pulumi:Stack::tatari-production
aws:cloudwatch:EventRuleEventSubscription urn:pulumi:production::tatari::aws:cloudwatch:EventRuleEventSubscription::tatari-reports-transfer-cron
pulumi:providers:snowflake urn:pulumi:production::tatari::pulumi:providers:snowflake::default_0_15_0
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::linear-spot-level-metrics-table
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::linear-spend-and-impressions-table
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::streaming-user-attribution-apps-table
pulumi:providers:aws urn:pulumi:production::tatari::pulumi:providers:aws::default_5_26_0
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::streaming-user-attribution-websites-table
pulumi:providers:aws-native urn:pulumi:production::tatari::pulumi:providers:aws-native::default_0_45_0
aws:iam/role:Role urn:pulumi:production::tatari::aws:iam/role:Role::tatari-reports-ingestion-role
aws-native:s3:Bucket urn:pulumi:production::tatari::aws-native:s3:Bucket::tatari-reports
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::streaming-spend-and-impressions-table
snowflake:index/table:Table urn:pulumi:production::tatari::snowflake:index/table:Table::streaming-publisher-level-metrics-table
aws:cloudwatch/eventRule:EventRule urn:pulumi:production::tatari::aws:cloudwatch:EventRuleEventSubscription$aws:cloudwatch/eventRule:EventRule::tatari-reports-transfer-cron
snowflake:index/storageIntegration:StorageIntegration urn:pulumi:production::tatari::snowflake:index/storageIntegration:StorageIntegration::snowflake-storage-integration
aws:s3/bucketPolicy:BucketPolicy urn:pulumi:production::tatari::aws:s3/bucketPolicy:BucketPolicy::tatari-reports-bucket-policy
aws:lambda/function:Function urn:pulumi:production::tatari::aws:lambda/function:Function::tatari-reports-transfer-lambda
snowflake:index/stage:Stage urn:pulumi:production::tatari::snowflake:index/stage:Stage::snowflake-stage
aws:cloudwatch/eventTarget:EventTarget urn:pulumi:production::tatari::aws:cloudwatch:EventRuleEventSubscription$aws:cloudwatch/eventTarget:EventTarget::tatari-reports-transfer-cron
aws:lambda/permission:Permission urn:pulumi:production::tatari::aws:cloudwatch:EventRuleEventSubscription$aws:lambda/permission:Permission::tatari-reports-transfer-cron
snowflake:index/fileFormat:FileFormat urn:pulumi:production::tatari::snowflake:index/fileFormat:FileFormat::snowflake-tatari-file-format
Found no pending operations associated with production
Backend
Name dominant-dobermann
URL s3://***
User ixti
Organizations
Dependencies:
NAME VERSION
@pulumi/aws-native 0.45.0
@pulumi/aws 5.26.0
@pulumi/pulumi 3.51.0
@pulumi/snowflake 0.15.0
@types/node 18.11.18
Pulumi locates its logs in /tmp by default
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: