1 min read | by Jordi Prats
While creating IAM policies you might have wondered: what's 2012-10-17? Is it something we need to update?
Checking the AWS documentation on IAM polcies, we can see that, currently, it supports two versions:
If you don't explicitly specify 2012-10-17 there are a bunch of features that you won't be able to use, such as policy variables: For example, variables such as ${aws:username} won't be recognized as variables and are treated as literal strings instead.
{
"Version": "2012-10-17",
"Statement": [
(...)
Thus, the Version it's not something we need to explicitly set to 2012-10-17 if we want to use the latest version even thought it looks like it's been a long time, it's not the default yet
Posted on 08/02/2021