Open ixti opened 3 days ago
Thank you for a detailed repro, I can confirm the problem on my end.
In addition I observed the following warnings on the first pulumi up
that imported the resource:
Diagnostics:
aws-native:s3:Bucket (demo):
warning: Can't import write-only properties:
accessControl,
lifecycleConfiguration/Rules/*/ExpiredObjectDeleteMarker,
lifecycleConfiguration/Rules/*/NoncurrentVersionExpirationInDays,
lifecycleConfiguration/Rules/*/NoncurrentVersionTransition,
lifecycleConfiguration/Rules/*/Transition,
replicationConfiguration/Rules/*/Prefix
After the resource is imported, refresh also emits warnings:
warning: Can't refresh write-only properties: accessControl, lifecycleConfiguration/Rules/*/ExpiredObjectDeleteMarker, lifecycleConfiguration/Rules/*/NoncurrentVersionExpirationInDays, lifecycleConfiguration/Rules/*/NoncurrentVersionTransition, lifecycleConfiguration/Rules/*/Transition, replicationConfiguration/Rules/*/Prefix
This must be related to https://github.com/pulumi/pulumi-aws-native/issues/1373
What happened?
When S3 Bucket resource imported can't be refreshed. Attempt to refresh - cause them to be marked for replacement.
Example
You can reproduce this with a simple script:
Output of
pulumi about
Additional context
AWS classic provider does not suffer from this, though:
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).