So i have this app running for a while, it created an s3 bucket automatically after the lambda declaration… but now i want to add a custom config (Lyfecycle rule), bye reading the docs i get the i should use the provider for such thing Serverless Framework - AWS Lambda Events - S3
But it simple ignores my config, when i check the bucket on s3 management it has no lifecycle rule
provider: s3: s3MyBucket: name: my-custom-name-success lifecycleConfiguration: Rules: - Id: SuccessRetentionRule Status: Enabled ExpirationInDays: 260
events: - s3: bucket: s3MyBucket event: s3:ObjectCreated:*
events: - s3: bucket: my-custom-name-success event: s3:ObjectCreated:*
The only option now would be create my own s3 resource declaration but its not possible sinze the bucket is already created.