abundant-oil-31046
01/23/2025, 11:15 AMaws.s3.Bucket
to aws.s3.BucketV2
a while ago. Everything was working. We now started getting these errors:
Diagnostics:
aws:s3:BucketV2 (xxx):
error: sdk-v2/provider2.go:515: sdk.helper_schema: missing expected [: provider=aws@6.66.3
error: diffing urn:pulumi:prod::apps::aws:s3/bucketV2:BucketV2::xxx: 1 error occurred:
* [server_side_encryption_configuration] missing expected [
I found this ticket which seems related https://github.com/pulumi/pulumi-aws/issues/4471, but I'm not entirely sure whether this is the issue. Is it still aliasing if we fully migrated back when we upgraded? Do you have any advice on how I could fix the state or fix the compatibility issue? The stack is now effectively broken since no changes can be made at all.
We have dev
and prod
stacks of the same project and weirdly the issue only appears in prod
. dev
is working fine. I'm 99% sure we did the exact same migration for both stacks.
Thanks!abundant-oil-31046
01/23/2025, 11:26 AMpulumi stack export
I can see that the outputs for the same bucket in the different stacks is quite different. I think I could probably "fix" it manually.... is there a way to edit the stack json? or is delete + reimport the only way?
I'm a bit hesitant to do this because sadly the prod stack is affected. If it was dev it would be easier....abundant-oil-31046
01/23/2025, 2:09 PMpulumi state edit
abundant-oil-31046
01/23/2025, 2:09 PMabundant-oil-31046
01/23/2025, 2:09 PMenough-garden-22763
01/23/2025, 2:11 PMpulumi state edit
?enough-garden-22763
01/23/2025, 2:12 PMenough-garden-22763
01/23/2025, 2:13 PMabundant-oil-31046
01/23/2025, 2:13 PMs
to the name and wrapping the object in an array solved the issue.
"serverSideEncryptionConfiguration": {
"rule": {
"applyServerSideEncryptionByDefault": {
"kmsMasterKeyId": "",
"sseAlgorithm": "AES256"
},
"bucketKeyEnabled": true
}
},
"versioning": {
"enabled": false,
"mfaDelete": false
},
abundant-oil-31046
01/23/2025, 2:14 PM"serverSideEncryptionConfigurations": [
{
"rules": [
{
"applyServerSideEncryptionByDefaults": [
{
"kmsMasterKeyId": "",
"sseAlgorithm": "AES256"
}
],
"bucketKeyEnabled": true
}
]
}
],
"versionings": [
{
"enabled": false,
"mfaDelete": false
}
],
enough-garden-22763
01/23/2025, 2:18 PMabundant-oil-31046
01/23/2025, 2:19 PM