troubleshooting Question

AWS - Steps to upload a VM - Creating a vmimport user to upload  the image

Avatar of Stuart Saxby
Stuart SaxbyFlag for Australia asked on
3 Comments1 Solution1248 ViewsLast Modified:
I'm following the steps to upload an image here:

When I run the following command:
aws iam create-role --role-name vmimport --assume-role-policy-document file://trust-policy.json

I get this error:
H:\>aws iam create-role --role-name vmimport --assume-role-policy-document C:\Users\Stuart.Saxby\Desktop\trust-policy.json
An error occurred (MalformedPolicyDocument) when calling the CreateRole operation: This policy contains invalid Json

I've copied the JSON exactly and verified it in a JSON validator.  Any ideas on how I can troubleshoot this?
Phil Phillips
Lead Platform Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros