Amazon web services – 403 Error when trying to deploy a S3 policy using terraform
I am trying to deploy a static website using an S3 bucket with Terraform. Therefore I need to use the a aws_s3_bucket_policy resource: resource "aws_s3_bucket_policy" "bucket" { bucket = aws_s3_bucket.bucket.id policy = jsonencode({ Version = "2012-10-17" Statement = [ {…