S3 Lifecycle rules using terraform

I need to add lifecycle rules to an existing s3 bucket (no versioning), but am unsure how to do it in this case.

Scope: All objects in bucket
Rules: Expire current versions of objects, Permanently delete noncurrent versions of objects
Expire current versions of objects: 7
Days after objects become noncurrent: 0

What would the code be to accomplish this?