The way I’d recommend doing R2 and Terraform is to use the Cloudflare provider to create the bucket then the AWS one to configure it