Hello! I'm confused with bucket and bucketV2 ? bas...
# aws
v
Hello! I'm confused with bucket and bucketV2 ? based on the documentation I understand I should use the bucketV2 (which is containing many field "Deprecated" like Versioning etc...), why bucket is not marked as deprecated in the code ?
m
aws.s3.Bucket
will go away with the upcoming v7 release of AWS classic (see the migration guide). The deprecated parameters in
aws.s3.BucketV2
have been replaced by dedicated resources, e.g., https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucketversioningv2/ for versioning.
v
If I understand well, changing the type to bucketV2 will destruct the existing bucket data 😨