AWS Migration JSON Error

0 votes

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" : "*"
        }
        ]
}

Dec 28, 2018 in AWS by Sradha
• 1,710 points
13 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can use the code below:

{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Effect": "Allow",

            "Action": [

                "s3:getBucketLocation",

                "s3:getBucketObject",

                "s3:listBucket"

                ],

            "Resource" : [

                "arn:aws::::vmimportdemo",

                "arn:aws::::vmimportdemo/*"

            ]

        },

        {

           "Effect": "Allow",

            "Action": [

                "ec2:modifySnapshotAttribute",

                "ec2:CopySnapshot",

                "ec2:RegisterImage",

                "ec2:Describe*"

                ],

            "Resource" : "*"

        }

        ]

}
answered Dec 28, 2018 by Sujata

Related Questions In AWS

0 votes
1 answer

AWS Cloudtrail API for Go SDK showing an error mesage.

You  must add S3 Policy in your ...READ MORE

answered Jun 27, 2018 in AWS by Flying geek
• 3,130 points
91 views
0 votes
1 answer

A strange spark ERROR on AWS EMR

Those warning messages can be suppressed by ...READ MORE

answered Jul 13, 2018 in AWS by Flying geek
• 3,130 points
27 views
0 votes
1 answer

AWS S3 CLI : error while trying to copy files locally using terminal

For the first error you should add ...READ MORE

answered Aug 3, 2018 in AWS by Archana
• 3,770 points
614 views
0 votes
1 answer
+1 vote
2 answers
0 votes
2 answers

Error : No supported authentication methods available on AWS

Diff from other answers above: I received this ...READ MORE

answered Mar 25 in AWS by Bathinda
• 140 points
1,200 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.