EC2 Image Builder: Role does not exist or does not have sufficient permissions


I'm trying to make a custom Ubuntu 20.04 image from a .iso file that I have uploaded to Amazon S3. I've went through all the steps to create an image pipeline, but when I get to the end and hit create pipeline it just says Error message: InvalidParameter: The service role role-name provided does not exist or does not have sufficient permissions. I've made a role specifically for this pipeline, and even when I attach a policy that has all permissions to all resources I still get this error that says it doesn't have permission.

Any help here?

asked a year ago384 views
1 Answer

The IAM role specified in the recipe will be passed as RoleName input parameter for ImportImage API. This role will be used by VMIE to perform certain operations on your behalf and should be assumable by Verify the trust policy of your role and make sure that is in the principal list.

VM Import/Export Requirements - Required service role -

Example trust policy for VMIE role:

   "Version": "2012-10-17",
   "Statement": [
         "Effect": "Allow",
         "Principal": { "Service": "" },
         "Action": "sts:AssumeRole",
         "Condition": {
               "sts:Externalid": "vmimport"
profile picture
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions