How do I have account specific SSH grunt IAM roles? #164
-
I’m currently working with something that looks like this in
The problem I’m running into is that
(User has ssh+sudo only in a specified tenancy/role) What’s the correct way to get there? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To achieve individual account level SSH access, you need to first configure it in each account in ssh-grunt on the servers. In each server module, there are variables Once that IAM group is specified in each account, you can then construct blank IAM groups in the security account that has those names. Note that SSH grunt doesn’t require any permissions in those IAM groups. To create the IAM group, you can use the custom-iam-entity module. |
Beta Was this translation helpful? Give feedback.
To achieve individual account level SSH access, you need to first configure it in each account in ssh-grunt on the servers. In each server module, there are variables
ssh_grunt_iam_group
andssh_grunt_iam_group_sudo
which specifies which IAM group to look for when allowing SSH access (e.g., in OpenVPN server, here is the definition). You can specify this to be any IAM group you like. You can have fine grained access by specifying a different value for each account.Once that IAM group is specified in each account, you can then construct blank IAM groups in the security account that has those names. Note that SSH grunt doesn’t require any permissions in those IAM groups.
To create the IAM …