Search code examples
amazon-s3policy

What does S3 Policy Version mean?


What does S3 Policy Version mean?

{
   "Version": "2008-10-17",
   "Statement": [{
                    "Sid": "AllowPublicRead",
                    "Effect": "Allow",
                    "Principal": { "AWS": "*" },
                    "Action": ["s3:GetObject"],
                    "Resource": ["arn:aws:s3:::bucket/*" ]
                }]
}

It is automatically added to the policy when we edit the policy.


Solution

  • It used to version the policy schema or metadata - the set of attributes you can use in your policy.

    If Amazon will issue an updated policy with additional fields the version will be increased.