While creating cloudfront distribution through aws console, we have an option to choose an origin access identity and also, let it update the bucket policy.
I am trying to look for similar options in terraform so that I don't have to manually manage the s3 bucket read permissions for cloudfront origin access identity.
I have checked https://www.terraform.io/docs/providers/aws/r/cloudfront_distribution.html but couldn't find any reference to such option.
Please let me know if I missed checking something on the page.