use the aws_s3_bucket_cors_configuration resource instead