If you expand and see the action listed inside "Action Setting and results", the policy simulator writes about "ListAllBuckets". So Your policy should have "Resource": "*", like:
{
"Version":"2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::<somebucketname>",
"arn:aws:s3:::<somebucketname>/*"
]
}
]
}
Do Check out the AWS Certification Course offered by Intellipaat.
Also, you can go through the video tutorial about IAM Policy.