@staticmethod
def set_policy(bucket):
    """Set bucket policy to be readable by everyone publically."""
    policy = (
        """
            {
                "Version": "2012-10-17",
                "Statement": [
                    {
                        "Sid": "PublicReadGetObject",
                        "Effect": "Allow",
                        "Principal": "*",
                        "Action": "s3:GetObject",
                        "Resource": "arn:aws:s3:::%s/*"
                    }
                ]
            }
            """
         % bucket.name)
    policy = policy.strip()
    pol = bucket.Policy()
    pol.put(Policy=policy)
