This message was deleted.
# aws
s
This message was deleted.
l
Nope. That allows me to choose from KMS or AES256.
I want S3.
I went through input.ts, there is no overlap between the types in that area, and the types further down that allow S3.
And it all seems correct. There must be a completely different chunk of configuration for SSE-S3.
b
i believe it turns up as aes256, reading through some issues now: https://github.com/cloudposse/terraform-aws-lb-s3-bucket/issues/9#issuecomment-542656328
@little-cartoon-10569 it looks like it you set server side by default and omit a key, it uses the S3 default keys
I'll try turn this into a snippet
l
Oh. Ok. Docs, eh? Harder than picking paint colours for bathrooms..
b
Copy code
const myBucket = new aws.s3.Bucket(myBucketName, {
    serverSideEncryptionConfiguration: {
      rule: {
        applyServerSideEncryptionByDefault: {
          sseAlgorithm: "AES256",
        },
      },
    },
    lifecycleRules: [
      {
        enabled: true,
        expiration: {
          days: 3,
        },
      },
    ],
  });
default encryption