Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Use reduced privilege Amazon user #461

Closed
tomchiverton opened this issue Dec 20, 2016 · 6 comments
Closed

Use reduced privilege Amazon user #461

tomchiverton opened this issue Dec 20, 2016 · 6 comments

Comments

@tomchiverton
Copy link

tomchiverton commented Dec 20, 2016

Right now, the root account's API key is used. Instead the recommendation should be to create an IAM role with just the minimal privileges required.
I don't know enough Ansible to go through and dig out everything the scripts do to produce this list and at least add it to the docs.

@DavidWittman
Copy link
Collaborator

@tomchiverton AFAIK you can use the credentials of any IAM user when creating streisand hosts. It doesn't have to be the root account as long as that particular user has the appropriate permissions.

Are you asking for some documentation on which permissions specifically this user should have?

@tomchiverton
Copy link
Author

tomchiverton commented Dec 21, 2016 via email

@mjrlee
Copy link
Contributor

mjrlee commented Jan 9, 2017

It may be a good idea to spell out how to create a specific IAM user with API keys specifically for streisand.

I'm happy to help put together a low privilege policy if that would be useful.

@tomchiverton
Copy link
Author

tomchiverton commented Jan 9, 2017 via email

@mjrlee
Copy link
Contributor

mjrlee commented Jan 12, 2017

Well, here's a starting point.

Testing so far - I've used it to create an image in the default VPC & subnet.
streisandPolicy.json.zip

@cpu
Copy link
Collaborator

cpu commented Jul 23, 2017

Closing in favour of StreisandEffect/discussions#11

@cpu cpu closed this as completed Jul 23, 2017
cpu pushed a commit that referenced this issue Oct 29, 2017
Adds instructions for a lower privilege AWS user based on [this comment](#461 (comment)) by @MartinLeedotOrg.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants