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

Enable provisioning of permission set to orgMain / delegated admin account #80

Open
leelalagudu opened this issue May 24, 2022 · 0 comments
Assignees
Labels
p2 Priority 2 tasks refactor Refactor existing code to a better version

Comments

@leelalagudu
Copy link
Contributor

leelalagudu commented May 24, 2022

  • There's been a recent change in the SSO admin API, wherein using specific IAM permisisons, you could now programmatically create/delete account assignments for org main/delegated admin account.
  • The solution currently excludes provisioning to org main/delegated admin account as the earlier version of SSO admin API did not allow this.
  • However, using the following permissions policy, provisioning lambda can now successfully assign/remove account assignment to org main / delegated admin account
{
    effect = "Allow"
    actions = [
      "iam:CreateRole",
      "iam:ListRolePolicies",
      "iam:AttachRolePolicy",
      "iam:PutRolePolicy"
    ]
    resources = [
      "arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/AWSReservedSSO*",
    ]
  }

  statement {
    effect = "Allow"
    actions = [
      "iam:GetSAMLProvider",
      "iam:CreateSAMLProvider"
    ]
    resources = [
      "arn:aws:iam::*:saml-provider/AWSSSO*",
    ]
  }

AC:

  • The solution should now programmatically switch the permissions it uses to provision based on the target account it's provisioning the account assignment to
  • Update docs to remove this limitation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Priority 2 tasks refactor Refactor existing code to a better version
Development

No branches or pull requests

1 participant