For background, we’re an agency with ~20 devs that can be on multiple projects at the same time. The aim is to put each project in an Account under AWS Organisations, so we can see quickly the expenditure of each, and keep each project’s resources organised.
At the moment each dev has a login for each account which is less than ideal. We have just moved to Gsuite, and ideally would like to use that for federated login as much as possible.
From what I understand, I’ve got two options:
Add an identity provider to IAM on each Account, with a corresponding SAML application on Gsuite. Users would have to sign in with a specific Account #, but would be able to use their Google credentials. A bit of a maintenance headache as there’d be multiple SAML apps on Gsuite
Set up accounts in Organisations, and tie them into AWS SSO without Gsuite SAML. Users would get a single username and password to sign into all Accounts, but would not be tied to Gsuite.
As far as I can tell, I could have the best of both worlds if I were using AWS Active Directory with an external AD, but for a number of reasons I’d rather not have to maintain an AD instance.
Have I missed something, or is there something on the roadmap to allow this scenario?
I guess if you didn’t mind all devs having access to all accounts you could do one gsuite saml to a bastion account (take your pick) and then allow cross account role assume from there.
Or define a small number of them (corresponding with appropriate role in the bastion account), if some of the accounts can be grouped together in terms of access control.
This is our approach between Azure AD and AWS. The devs access one account and depending their rights they can assume roles on the others or not.
It was a bit of a pain to recreate the roles that were in use in IAM to import them to Azure AD but being able to manage all accounts now from just one place it’s heaven and security is implemented better too.
That is indeed the best solution available ATM, since it doesn’t require you to make any changes to the user information in your external SSO provider when you create new AWS accounts.
What we did in my previous company was:
a) Move all our accounts under a new organization with a new master account (which is a good practice regardless of SSO, and very helpful due to unified billing)
b) Set up G-Suite SSO only in the new master account
c) Create AWS roles for the different real-life roles (Developers, Admins, Billing Managers, etc) in the master and children account with appropriate IAM permissions
d) Modify the user information in G-Suite to allow assuming the chosen role in the master account for each user (no need to repeat it for the children accounts)
e) Set up cross-account assume-role permissions from the master to all the children accounts
For CLI/API access we used aws-google-auth with a simple wrapper script that provides the correct parameters (AWS account ID, SAML provider ID, etc).
This. This is what you want. If all the devs have similar permissions then it’s a role in the child account and a group in the IAM account to enable switching to the role. Force mfa on the role and the IAM users. Also, I would setup a dedicated just for this. Your iam or cloud admin will have more rights in there but everyone else can just login and switch roles.
Also look into SCPs for blocking the devs from leaving the org.
Do you know of an equivalent for Powershell/CMD? About half of our devs are Windows users, and I think there will be an uprising if I suggest they use WSL.