While working on AWS Migration i am getting below error :-
"This policy contains the following error: Missing required field Action For more information about the IAM policy grammar, seeAWS IAM Policies
I think something is missing like -- Action in code. Can someone help me with the correct code?
Here is my Code.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:getBucketLocation",
                "s3:getBucketObject",
                "s3:listBucket"
                ],
            "Resource" : [
                "arn:aws::::vmimportdemo",
                "arn:aws::::vmimportdemo/*"
            ]
        },
        {
            "Effect": "Allow",
            "Resource" : [
                "arn:aws::::vmimportdemo",
                "arn:aws::::vmimportdemo/*"
                ]
        },
        {
           "Effect": "Allow",
            "Action": [
                "ec2:modifySnapshotAttribute",
                "ec2:CopySnapshot",
                "ec2:RegisterImage",
                "ec2:Describe*"
                ],
            "Resource" : "*"
        }
        ]
}