This template creates an S3 on Outposts bucket with tags and lifecycle configuration.

CloudFormation Template