Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which AWS permissions do I need to give to make the copy and tagging work. #6

Closed
HelioCampos opened this issue Aug 27, 2019 · 3 comments

Comments

@HelioCampos
Copy link

Hi @martinbaillie,

  • I'm loved your plugin and am trying to use it now. My problem is that I need to restrict the permissions for the role this plugin will use and I'm unable to find which permissions it needs.
  • Can you help with this?
@Itiho
Copy link

Itiho commented Sep 19, 2019

amazon-ebs (ami-copy): [us-east-1] Copying ami-0e08471c0c40e8d82 to account 213253929815 (encrypted: false)

==> amazon-ebs (ami-copy): [sa-east-1] Copying ami-00242ff3cdb2ada43 to account 213253929815 (encrypted: false)

==> amazon-ebs (ami-copy): AccessDenied: Access denied

==> amazon-ebs (ami-copy): 	status code: 403, request id: 1cb95c18-dae0-11e9-a525-e53a66402763

==> amazon-ebs (ami-copy): AccessDenied: Access denied

==> amazon-ebs (ami-copy): 	status code: 403, request id: 1cb98301-dae0-11e9-9567-c3ba895cda68

==> amazon-ebs: Running post-processor: manifest

Build 'amazon-ebs' errored: 1 error(s) occurred:

I get this error

@Itiho
Copy link

Itiho commented Sep 19, 2019

@HelioCampos create de IAM policy with this permissions in destination account:

  • DescribeImageAttribute
  • DescribeImages
  • DescribeImportImageTasks
  • CopyImage
  • CopySnapshot
  • CreateImage
  • DeregisterImage
  • ImportImage
  • ImportSnapshot
  • ImportVolume
  • ModifyImageAttribute
  • RegisterImage
  • ResetImageAttribute

create a iam role (Another AWS account) with this policy and delegate to origin account

@amehrabyan-wf
Copy link

  • "ec2:CreateTags"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants