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

after updating to 6.69, I can not preview and up . #5222

Open
a523 opened this issue Feb 20, 2025 · 1 comment
Open

after updating to 6.69, I can not preview and up . #5222

a523 opened this issue Feb 20, 2025 · 1 comment
Labels
impact/regression Something that used to work, but is now broken kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer

Comments

@a523
Copy link

a523 commented Feb 20, 2025

Describe what happened

when I run pulumi preview

 aws:s3:BucketLifecycleConfigurationV2 (xxxxx):
    error: objectEncoder failed on property "rule": encList failed while encoding element 0 ({map[abortIncompleteMultipartUpload:{<nil>} expiration:{<nil>} filter:{map[and:{<nil>} objectSizeGreaterThan:{} objectSizeLessThan:{} prefix:{} tag:{<nil>}]} id:{transfer_to_cold_storage} noncurrentVersionExpiration:{<nil>} noncurrentVersionTransitions:{[]} prefix:{} status:{Enabled} transitions:{[{map[date:{} days:{90} storageClass:{STANDARD_IA}]}]}]}): objectEncoder failed on property "filter": objectEncoder failed on property "object_size_greater_than": Expected a Number

How to fix it ?

Sample program

It is easy to reproducible :

  1. using the old version pulumi-aws to create bucket with a LifecycleConfigurationV2 an rule like this:
lifecycle_rules = [
    {
        "id": "transfer_to_cold_storage",
        "filter": {},   # this is empty
        "transitions": [
            {
                "storage_class": "STANDARD_IA",
                "days": 90,
            }
        ],
        "status": "Enabled",
    }
]
  1. update to 6.69
  2. run pulumi preview --refresh

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI
Version 3.133.0
Go Version go1.23.1
Go Compiler gc

Plugins
KIND NAME VERSION
resource aws 6.69.0
language python 3.133.0
resource random 4.16.1

Host
OS darwin
Version 13.6.1
Arch x86_64

This project is written in python: executable='xxxxx' version='3.11.11'

Backend
Name xxx
URL s3://xxxxx-pulumi-backend-hkxxxxxx
User xxxx
Organizations
Token type personal

Dependencies:
NAME VERSION
boto3 1.34.133
pulumi_aws 6.69.0
pulumi_random 4.16.1
setuptools 65.5.1
wheel 0.38.4

Pulumi locates its logs in /var/folders/gd/tqy86p5n2cq64p0wghxk2w400000gn/T/ by default
warning: Failed to get information about the current stack: No current stack

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).

@a523 a523 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 20, 2025
@a523 a523 changed the title after updating to 6.69, I can not refresh and up . after updating to 6.69, I can not preview and up . Feb 20, 2025
@corymhall corymhall self-assigned this Feb 20, 2025
@corymhall corymhall added p1 A bug severe enough to be the next item assigned to an engineer impact/regression Something that used to work, but is now broken and removed needs-triage Needs attention from the triage team labels Feb 20, 2025
@corymhall
Copy link
Contributor

@a523 thanks for raising this issue! I've been able to track it down and created an issue for the root cause.

We'll need to work on figuring out how to fix the root cause or implement a patch fix here. Until then the only workaround that you can try is to edit the state to update the objectSizeGreaterThan and objectSizeLessThan values to null. Our permanent fix should make this change to the state for you as part of a state upgrader.

@corymhall corymhall removed their assignment Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/regression Something that used to work, but is now broken kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer
Projects
None yet
Development

No branches or pull requests

2 participants