pulumi-aws icon indicating copy to clipboard operation
pulumi-aws copied to clipboard

PATCH 0027-Restore-S3ConnURICleaningDisabled.patch

Open t0yv0 opened this issue 2 years ago • 2 comments

The change of interest is:

https://github.com/hashicorp/terraform-provider-aws/pull/33431

It appears that upstream is gradually migrating to AWS SDK v2 for Go. As part of these changes they removed S3ConnURICleaningDisabled which is now dead code upstream. For pulumi-aws, however, this code is still in use and handles force-deletion of the legacy bucket (internal/service/s3legacy/bucket_legacy.go). The patch reverts the deletion to keep upstream compiling under the patch-set in pulumi-aws.

t0yv0 avatar Sep 25 '23 19:09 t0yv0

@t0yv0 My understanding is that we don't need to "test" the patch, since it is necessary to ensure our code compiles. If we make changes to the legacy bucket such that our code compiles without this patch, we are safe to remove this patch?

Does this sound right?

iwahbe avatar Sep 27 '23 15:09 iwahbe

Well that's a good point; that's one way to make the argument; but the other argument is for testing this is strong too. We're maintaining legacy bucket when upstream doesn't, has deleted the files and keeps changing things around. It could easily bit-rot and stop working. With this patch the use case I'm particularly concerned about is force-deletion, this is where this code is called. We could use making sure it's covered.

t0yv0 avatar Sep 27 '23 17:09 t0yv0