Add group registry support to team provisioner#23
Merged
Conversation
Extends the team-provisioner Lambda with a sync_groups action that: - Reads members from existing Google Workspace groups - Syncs to Cognito internal pool (for app-level authorization) - Syncs to Identity Center (for AWS console access) - Assigns permission sets by name lookup (admin/developer/readonly) New script: provision-groups.sh invokes the Lambda with groups.yaml. Lambda resolves permission set ARNs by name at runtime — no hardcoded ARNs. Adds SSO instance ARN env var and sso:ListPermissionSets IAM permissions.
Terraform PlanChanges detected — review required. Plan output |
LLM Plan ReviewRisk: 🟢 LOW Routine infrastructure updates adding an apply-gate Lambda function and expanding team provisioner permissions for SSO management.
|
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary - Extends team-provisioner Lambda with `sync_groups` action - Reads members from Google groups, syncs to Cognito and/or Identity Center - Assigns permission sets by name lookup (no hardcoded ARNs) - New `provision-groups.sh` script for CI invocation - SSO permissions added to Lambda IAM role ## How it works 1. `groups.yaml` in registry defines groups with `cognito: true` and/or `identity_center: true` 2. Registry CI calls `provision-groups.sh` on merge 3. Lambda reads Google group members, syncs to Cognito/Identity Center 4. If `permission_set` is specified, assigns the named permission set to the Identity Center group ## Test plan - [ ] CI passes - [ ] After merge+apply, merge registry PR to trigger group sync - [ ] Verify Cognito groups created with Google members - [ ] Verify Identity Center groups with permission set assignments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sync_groupsactionprovision-groups.shscript for CI invocationHow it works
groups.yamlin registry defines groups withcognito: trueand/oridentity_center: trueprovision-groups.shon mergepermission_setis specified, assigns the named permission set to the Identity Center groupTest plan