Since Lightsail instances are hosted from a dedicated AWS account different from the user's account, what would be a good S3 bucket policy to restrict bucket/object actions for a specific Lightsail instance? Specifically, I would like to grant only s3:PutObject
and s3:ListBucket
actions to the instance.
Or, is there another, better solution for granting access than the bucket policy?