Hi, I'm hitting this error when running `pulumi pr...
# python
m
Hi, I'm hitting this error when running `pulumi preview`:
Copy code
Diagnostics:
  aws:s3:BucketV2 (ams-dev-intake-form-bucket):
    error:   sdk-v2/provider2.go:509: sdk.helper_schema: missing expected [: provider=aws@6.74.0
    error: diffing urn:pulumi:dev::ams::aws:s3/bucketV2:BucketV2::ams-dev-intake-form-bucket: 1 error occurred:
    	* [versioning] missing expected [
There are no changes in the program code, and this is an old stack that hasn't had any updates in a long time. I just upgraded the pulumi CLI, Python package, and AWS provider to the latest versions, and then ran the preview. Any ideas what's causing this error?
Installed versions:
Copy code
pulumi = "^3.159.0"
pulumi-random = "^4.18.0"
pulumi-aws = "^6.74.0"
If I look inside the exported stack state JSON file, I can see this:
Copy code
{
                "urn": "urn:pulumi:dev::ams::pulumi:providers:aws::default_6_49_0",
                "custom": true,
                "id": "bffae1d6-36e0-4a2f-b18e-9e4ae68c7fd0",
                "type": "pulumi:providers:aws",
                "inputs": {
                    "region": "us-east-1",
                    "skipCredentialsValidation": "false",
                    "skipRegionValidation": "true",
                    "version": "6.49.0"
                },
                "outputs": {
                    "region": "us-east-1",
                    "skipCredentialsValidation": "false",
                    "skipRegionValidation": "true",
                    "version": "6.49.0"
                },
                "created": "2024-08-28T12:43:53.761362795Z",
                "modified": "2024-08-28T12:43:53.761362795Z"
            },
So it looks like the stack is on pulumi-aws 6.49.0, which is quite a bit behind the latest 6.74.0.
Found that this error was introduced in pulumi-aws 6.51.0. The version right before it, 6.50.1, works just fine.