- Home /
- Blog /
- Just-in-time AWS access for AI agents: deploying TEAM on IAM Identity Center, scoping it, proving it, and tearing it down

Just-in-time AWS access for AI agents: deploying TEAM on IAM Identity Center, scoping it, proving it, and tearing it down
- Ross Wickman
- AWS
- November 20, 2026
Table of Contents
I needed a way to give agentic tooling temporary, account-specific access to AWS. The permission sets I already had in IAM Identity Center were either too permissive or too restrictive, and that gap was most obvious in production. I wanted the tools to get exactly the access a task needed, for a fixed window, with a record of who asked and why.
The permission sets I built were mainly for kiro-cli access to AWS accounts, but this works for any AI tool. The intent is simple: give the AI only a limited set of permissions so it doesn’t go off the rails.
So I deployed TEAM (Temporary Elevated Access Management), the open-source aws-samples/iam-identity-center-team solution. It is not a managed AWS feature. You deploy it into your own account, you patch it, and you own it. I’ve deployed it in three different AWS Organizations:
- One with 40+ accounts, roughly 10 prod and 30+ non-prod
- One with 5 R&D accounts
- One with 1 prod account and 7 supporting accounts
TEAM is one Organization, one Identity Center, so that’s three separate TEAM deployments.
This post is the path I took: deploy TEAM (including the fixes I needed to get a new deployment working in 2026), build a task-shaped permission set for an agent, set up eligibility, request access, prove what the agent can and cannot do from the CLI, and tear it all down.
What you’ll have at the end
- TEAM running in a dedicated Identity Center delegated admin account
- A narrowly scoped permission set an agent can only get through a time-boxed TEAM request
- A repeatable set of CLI checks that prove the grant, the scope, and the revoke
- A cleanup path
Time: deploying the solution took me about 30 minutes, not counting building and deploying new permission sets. Most of that is the Amplify build.
Repo: everything deploys from the official aws-samples/iam-identity-center-team repo. The template fix and config below are small enough to apply by hand. The permission sets I use for AI tools are in quiverstone/armory.
The decision: why TEAM, and what I expected that turned out wrong
Going in, I expected to write inline policies in real time: the agent needs something, I write exactly the permissions for that task as a JSON policy, and that’s what gets granted. That’s not how TEAM works. You can’t send a custom policy with the request. TEAM time-boxes Identity Center account assignments of permission sets that already exist.
That changed my design. Instead of one big “Agent” permission set, I pre-stage small, task-shaped permission sets (one job, one account, one Region) and make TEAM the only way to get them. The inline policy still exists, it just lives on the permission set, and the request picks which one.
| Option | Why it’s tempting | Why I didn’t stop there |
|---|---|---|
| Standing permission set assignments | Zero new infrastructure | The agent has access 24/7. Too permissive or too restrictive, nothing in between. |
| Scripted CreateAccountAssignment / DeleteAccountAssignment | A few lines of CLI | No request workflow, no request record, and the “delete” half is the part that gets forgotten. |
| TEAM, as-is | Open source, Identity Center native, time-boxed assignments with a request and audit trail | You operate it, it can’t touch the management account, and it can’t take a policy per request |
| A custom TEAM-style tool that accepts a scoped IAM policy JSON per request | True custom just-in-time access | I’m still considering building this. TEAM plus task-shaped permission sets got me most of the way without writing it. |
Prerequisites
From the TEAM prerequisites, plus what I’d add:
- AWS Organizations with IAM Identity Center enabled.
- A dedicated TEAM account. It becomes the delegated admin for Identity Center, CloudTrail, and Account Management. Run nothing else there.
- Deploy in the same Region as Identity Center. This is a hard requirement.
- Two Identity Center groups: TEAM admins and TEAM auditors. For this walkthrough, also create a requester group (for example
team-agent-requesters). - Every TEAM user needs these set in Identity Center before they can sign in: a primary email address, first and last name, active status, assignment to the TEAM IDC APP (Step 4), and membership in the right group (admin, auditor, or requester). I learned the email one the hard way; see Step 4.
- AWS CLI,
jq,git, andgit-remote-codecommit(TEAM’s default deploy pushes the code to a CodeCommit repo it creates). CloudShell also works. - Named CLI profiles for the management account and the TEAM account.
Grab the IDs you’ll need:
aws sso-admin list-instances \
--query 'Instances[0].{instance:InstanceArn,store:IdentityStoreId}' --output table
aws identitystore get-group-id \
--identity-store-id d-xxxxxxxxxx \
--alternate-identifier '{"UniqueAttribute":{"AttributePath":"displayName","AttributeValue":"team-agent-requesters"}}'
Limits to design around: TEAM cannot grant access to the management account, and it cannot manage permission sets provisioned there. Keep a separate break-glass path for the management account.
Step 1: Clone and delegate admin (management account)
git clone https://github.com/aws-samples/iam-identity-center-team.git
cd iam-identity-center-team/deployment
cp -n parameters-template.sh parameters.sh
init.sh runs with your management account profile and registers the TEAM account as delegated admin for Account Management, CloudTrail, and Identity Center. It only reads REGION, TEAM_ACCOUNT, and ORG_MASTER_PROFILE, so fill those in first.
./init.sh
# 111122223333 configured as delegated Admin for AWS Account Manager
# 111122223333 configured as delegated Admin for cloudtrail
# 111122223333 configured as delegated Admin for IAM Identity Center
Step 2: The CloudTrail Lake problem (and the fix)
This is the one that cost me the most time.
TEAM’s sample deployment depends on CloudTrail Lake for its in-app session audit. But AWS closed CloudTrail Lake to new customers on May 31, 2026. If your Organization isn’t already a CloudTrail Lake customer, the Amplify backend stack fails when it tries to create an event data store. As of this writing the sample still has that dependency (issue #586 is open).
The obvious move is CLOUDTRAIL_AUDIT_LOGS=none. That doesn’t work on its own, because the template’s CreateEventDataStore condition includes none, so it still tries to create an event data store (with ingestion off) and still fails. I found a workaround in an existing GitHub issue and worked with AWS Support to get it running. The fix:
- Remove
nonefrom theCreateEventDataStorecondition inamplify/backend/custom/cloudtrailLake/cloudtrailLake-cloudformation-template.json:
"CreateEventDataStore": {
"Fn::Or": [
- {
- "Fn::Equals": [
- "none",
- {
- "Ref": "CloudTrailAuditLogs"
- }
- ]
- },
{
"Fn::Equals": [
"read",
- Set
CLOUDTRAIL_AUDIT_LOGS=noneinparameters.sh(Step 3). - Commit the change to your local clone before you deploy.
deploy.shpushes your local git history to CodeCommit, so uncommitted changes are not deployed.
git add amplify/backend/custom/cloudtrailLake/cloudtrailLake-cloudformation-template.json
git commit -m "Skip CloudTrail Lake event data store when CLOUDTRAIL_AUDIT_LOGS=none"
What you give up: TEAM’s in-app audit query (session activity in the TEAM UI) doesn’t work. Everything else in TEAM does. CloudTrail event history still gives you 90 days of management events in each account, and that’s what I use in the verify step below.
If you are an existing CloudTrail Lake customer, you can skip the patch and point CLOUDTRAIL_AUDIT_LOGS at an organization event data store ARN in the TEAM account, as the docs describe. There’s also an open community PR (#599) that adds CloudWatch Logs Insights as an audit backend. It isn’t merged.
Step 3: Parameters and deploy (TEAM account)
Finish parameters.sh:
IDC_LOGIN_URL=https://d-xxxxxxxxxx.awsapps.com/start
REGION=us-east-1 # must match Identity Center
TEAM_ACCOUNT=111122223333
ORG_MASTER_PROFILE=org-mgmt
TEAM_ACCOUNT_PROFILE=team-admin
TEAM_ADMIN_GROUP="team-admins"
TEAM_AUDITOR_GROUP="team-auditors"
TAGS="project=iam-identity-center-team environment=prod"
CLOUDTRAIL_AUDIT_LOGS=none # requires the Step 2 patch
UI_DOMAIN=team.example.com # optional, only if you set up a custom domain
CACHE_TTL=604800 # OU account cache TTL, 1 week
Leaving SECRET_NAME unset keeps the default path: deploy.sh creates a CodeCommit repo named team-idc-app, repoints your clone’s origin at it, pushes main, and deploys the TEAM-IDC-APP CloudFormation stack, which creates the Amplify app and its build. (If you’d rather deploy from your own GitHub repo, the docs cover SECRET_NAME with a classic personal access token.)
./deploy.sh
The Amplify build takes about 20 minutes. Confirm the app exists and the landing page loads:
aws amplify list-apps --profile team-admin --region us-east-1 \
--query "apps[?name=='TEAM-IDC-APP'].{id:appId,domain:defaultDomain}" --output table
If you set UI_DOMAIN, add the domain in the Amplify console (TEAM-IDC-APP > Domain management > Add domain). I used a Route 53 hosted zone for this.
Treat your local clone as the source of truth. Don’t edit files in the CodeCommit console. Every redeploy should come from a clone that has your fixes committed.
Version check. As of November 13, 2026 the latest release is v1.5.2 (Python 3.13 Lambda runtime; needs the CloudFormation redeploy that deploy.sh or update.sh does). v1.5.1 is the floor: it fixes three security issues including CVE-2026-86830 (AWS Security Bulletin 2026-112-AWS). Heads-up for later: update.sh pulls upstream main, which still has the CloudTrail condition bug, so check that your Step 2 fix survives the merge before you redeploy.
Step 4: Wire TEAM into Identity Center (SAML + Cognito)
./integration.sh
# applicationStartURL: https://<prefix>-main.auth.amazoncognito.com/authorize?...&idp_identifier=team
# applicationACSURL: https://<prefix>-main.auth.amazoncognito.com/saml2/idpresponse
# applicationSAMLAudience: urn:amazon:cognito:sp:us-east-1_XXXXXXX
In the Identity Center console: Applications > Add application > Add custom SAML 2.0 application, name it TEAM IDC APP, and copy the IAM Identity Center SAML metadata file URL. Paste the start URL, ACS URL, and audience from above. Then Actions > Edit attribute mappings:
Subject ${user:subject} persistent
Email ${user:email} basic
Assign the TEAM admin, auditor, and requester groups to the app. Then point Cognito at Identity Center:
cat > details.json <<'JSON'
{ "MetadataURL": "https://portal.sso.us-east-1.amazonaws.com/saml/metadata/<your-id>" }
JSON
./cognito.sh
Two things went wrong for me here.
1. “Login option is not available.” After a successful deploy, opening TEAM from the Identity Center portal gave me:
Login option is not available
2. “Resource not found” when signing in. Some users hit this:
Resource not found
AWS Support helped me work through both. Their notes are below, as they gave them. The short version for the second one: every TEAM user needs an email address in IAM Identity Center, which is why it’s in the prerequisites above.
To check which identity providers each of TEAM’s Cognito app clients is set up with:
POOL=$(aws cognito-idp list-user-pools --max-results 10 --profile team-admin \
--query "UserPools[?contains(Name,'teamabcd1234')].Id" --output text)
for c in $(aws cognito-idp list-user-pool-clients --user-pool-id $POOL --profile team-admin \
--query 'UserPoolClients[].ClientId' --output text); do
aws cognito-idp describe-user-pool-client --user-pool-id $POOL --client-id $c --profile team-admin \
--query 'UserPoolClient.{name:ClientName,providers:SupportedIdentityProviders}'
done
Notes from AWS Support
I worked with AWS Support to get TEAM running without CloudTrail Lake. These are their notes, unedited apart from formatting. I removed the sections about the cognito.sh and deploy.sh fixes, since this post doesn’t walk through those changes.
Challenges & How we can resolve them
- CloudTrail Lake is not accepting new Customers - During deployment, you have found the TEAM’s dependency that AWS CloudTrail Lake is currently not accepting new customers in your region, causing the Amplify backend stack to fail.
How we can fix it: - a change in the TEAM CloudFormation template where
nonewas incorrectly included in theCreateEventDataStorecondition - meaning it still tried to create an EventDataStore even whennonewas passed
- Fix the template to exclude
nonefrom the condition- Set
CLOUDTRAIL_AUDIT_LOGS=noneinparameters.shto skip EventDataStore creation- Redeployed without CloudTrail Lake
Impact:
While the audit query feature within TEAM is temporarily unavailable, all other TEAM functionality continues to work seamlessly. It’s worth noting that your AWS CloudTrail event history remains fully accessible, providing visibility into all API activities for up to 90 days - ensuring your audit and compliance needs are still met in the interim.
- Application Sign In Error - resource not found
- If encountered “Resource not found” error when signing in to the TEAM application.
How you can resolve it:
- Check the affected users have an email address set in IAM Identity Center.
- Email is a mandatory attribute for TEAM - used for user identity, notifications, and audit logging.
- Add email addresses to affected users in IAM Identity Center.
- Users will be able to sign in successfully after the fix.
User Onboarding Requirements:
- Every user who needs to access TEAM must have the following set in IAM Identity Center before they can log in:
- Email address (Primary = true)
- First name & Last name
- Active status
- Assigned to TEAM IDC APP
- Member of relevant group (Admin / Auditor / Requester)
Redeployment Note:
If you ever need to redeploy TEAM, please ensure:
- The CloudTrail template fix is committed to local git before running
deploy.sh.deploy.shpushes local git code to CodeCommit - any uncommitted changes will not be deployed.- Never edit files directly in CodeCommit console as
deploy.shwill overwrite them on next run.
The docs also note that the Administration menu doesn’t appear on a TEAM admin’s first login while Identity Center and Cognito sync groups. Sign out and back in before assuming something’s broken.
Step 5: Build a task-shaped permission set for the agent
This is where my “inline policies in real time” idea landed. The example below is illustrative: a coding agent that ships code to one Lambda function in prod and reads its logs, and nothing else. The real permission sets I use for AI tools are in quiverstone/armory.
agent-prod-deploy-policy.json:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadTheOneFunction",
"Effect": "Allow",
"Action": [
"lambda:GetFunction",
"lambda:GetFunctionConfiguration",
"lambda:ListVersionsByFunction",
"lambda:ListAliases"
],
"Resource": "arn:aws:lambda:us-east-1:111122223333:function:orders-api*"
},
{
"Sid": "ShipCodeToTheOneFunction",
"Effect": "Allow",
"Action": [
"lambda:UpdateFunctionCode",
"lambda:PublishVersion",
"lambda:UpdateAlias"
],
"Resource": "arn:aws:lambda:us-east-1:111122223333:function:orders-api*"
},
{
"Sid": "ReadItsLogs",
"Effect": "Allow",
"Action": [
"logs:DescribeLogStreams",
"logs:GetLogEvents",
"logs:FilterLogEvents"
],
"Resource": "arn:aws:logs:us-east-1:111122223333:log-group:/aws/lambda/orders-api*"
},
{
"Sid": "NeverTheseInProd",
"Effect": "Deny",
"Action": [
"lambda:DeleteFunction",
"lambda:AddPermission",
"lambda:UpdateFunctionConfiguration",
"lambda:PutFunctionConcurrency",
"logs:DeleteLogGroup",
"iam:*",
"sso:*",
"organizations:*",
"kms:ScheduleKeyDeletion",
"kms:DisableKey"
],
"Resource": "*"
},
{
"Sid": "StayInOneRegion",
"Effect": "Deny",
"NotAction": ["sts:GetCallerIdentity"],
"Resource": "*",
"Condition": {
"StringNotEquals": { "aws:RequestedRegion": "us-east-1" }
}
}
]
}
Why it’s shaped this way:
- Allow by resource, not by service. The agent gets one function and its log group, not
lambda:*. - Explicit denies as a seatbelt. If someone later attaches a broader managed policy to this permission set, the denies still win.
UpdateFunctionConfigurationis denied so the agent can’t swap the execution role or environment variables, only code. - One Region. Cheap insurance against an agent wandering.
Lint it before you create anything:
aws accessanalyzer validate-policy --policy-type IDENTITY_POLICY \
--policy-document file://agent-prod-deploy-policy.json \
--query 'findings[].{type:findingType,issue:issueCode}' --output table
Create the permission set from the TEAM account (it’s the Identity Center delegated admin). The session duration is one hour, matching what I use as the max request duration for general operations (more on why in “the two clocks”).
INSTANCE_ARN=$(aws sso-admin list-instances --profile team-admin \
--query 'Instances[0].InstanceArn' --output text)
PS_ARN=$(aws sso-admin create-permission-set --profile team-admin \
--instance-arn "$INSTANCE_ARN" \
--name AgentDeploy-OrdersApi-Prod \
--description "TEAM-only. Ship code to orders-api, read its logs." \
--session-duration PT1H \
--query PermissionSet.PermissionSetArn --output text)
aws sso-admin put-inline-policy-to-permission-set --profile team-admin \
--instance-arn "$INSTANCE_ARN" --permission-set-arn "$PS_ARN" \
--inline-policy file://agent-prod-deploy-policy.json
Do not assign it to anyone. TEAM does the assigning. If you’d rather manage it as IaC, the same thing as CloudFormation is an AWS::SSO::PermissionSet with SessionDuration: PT1H and the policy above as InlinePolicy.
Step 6: Eligibility (and, if you want it, approval)
Eligibility decides who can request which permission sets in which accounts or OUs, the max duration in hours, and whether approval is required (policy docs).
In the TEAM UI as a TEAM admin: Administration > Eligibility policy > Create eligibility policy. Pick the team-agent-requesters group, the account, AgentDeploy-OrdersApi-Prod, and a max duration.
Max duration. I use 1 hour as the max for general operations and adjust per use case when a task genuinely needs longer.
Approval. For us, approval is mainly there as an audit and log trail of elevated access in critical accounts: every grant has a request, a requester, a justification, a start time, and a duration. Requesters currently approve their own requests.
If you do want a second person on prod, tick Approval required and add an approver policy (Administration > Approver policy > Create approver policy) for the same account with a separate approver group. If approval is required and no approver policy matches, or the approver group is empty, TEAM won’t let anyone request that account.
Or do it as code. TEAM ships an optional machine-auth setup for its GraphQL API, and a community Terraform provider uses it:
./api-machine-auth.sh
./get-machine-auth-credentials.sh # prints token_endpoint, graph_endpoint, client_id, client_secret
export AWSTEAM_TOKEN_ENDPOINT=... AWSTEAM_GRAPH_ENDPOINT=... AWSTEAM_CLIENT_ID=... AWSTEAM_CLIENT_SECRET=...
terraform {
required_providers {
awsteam = { source = "awsteam-contrib/awsteam", version = "~> 1.2" }
}
}
provider "awsteam" {}
variable "approval_required" { default = false }
resource "awsteam_eligibility_group" "agent_prod_deploy" {
group_id = var.requester_group_id
group_name = "team-agent-requesters"
approval_required = var.approval_required
duration = 1 # hours
accounts = [{ account_id = var.prod_account_id, account_name = "prod" }]
permissions = [{ permission_arn = var.permission_set_arn, permission_name = "AgentDeploy-OrdersApi-Prod" }]
}
# only needed when approval is required
resource "awsteam_approvers_account" "prod" {
count = var.approval_required ? 1 : 0
account_id = var.prod_account_id
account_name = "prod"
approvers = [var.approver_group_name]
group_ids = [var.approver_group_id]
}
The provider is maintained outside aws-samples, so pin it. The machine-auth client gets the api/admin scope; treat that client secret like an admin credential. The example defaults approval_required to false. That is a reader option, not how I run TEAM today.
Policy gotchas from the docs that matter at 40+ accounts:
- OU eligibility is not recursive. It covers accounts directly in the OU, not child OUs.
- If a user is in several groups, “approval required” wins, and the effective max duration is the highest one.
Step 7: Request, get credentials to the agent, and prove it
Before the request, the account and permission set don’t show up for you in the Identity Center access portal. Nothing is assigned.
Request it. In TEAM: Requests > Create request. Pick the account, the AgentDeploy-OrdersApi-Prod role (or whichever task-shaped set you’re elevating), a start time, a duration (1 hour in the walkthrough), and a justification. In my setup, the requester then approves their own request, so the grant is still recorded as an approved elevation, not just an auto-activation.
The screenshot below is from my Testing account history, not the illustrative orders-api example used in the commands. This request was for the ai-bedrock-ro role, starting 2026-11-20 at 10:40, for 2 hours, ticket CLD-416, with the justification “Read account resources with new BR Agent.” Email is redacted. Those roles have since been removed, so I can’t walk a live request-to-grant, or show portal before and after shots, on this deployment right now.

Confirm the grant exists (TEAM account):
aws sso-admin list-account-assignments --profile team-admin \
--instance-arn "$INSTANCE_ARN" --account-id 111122223333 --permission-set-arn "$PS_ARN"
Get credentials to the agent. I used one of two ways:
- The access portal. The account now lists
AgentDeploy-OrdersApi-Prod. Choose Access keys and copy the temporary credentials as environment variables into the shell where the agent will run. - Leapp. It syncs your Identity Center accounts and permission sets and starts a session for the one TEAM just granted, so the agent’s shell picks up those credentials.
Then run kiro-cli (or whatever agent you use) in that shell. It has those permissions and nothing else.
Prove who the agent is and what it can do (same shell; add --profile <name> if your Leapp session writes a named profile). I don’t have a fresh terminal capture to paste here: the roles from the screenshots have been removed, and I didn’t have time to run a new grant. These are the checks I use, and the outcomes you should expect:
aws sts get-caller-identity
# "Arn": "arn:aws:sts::111122223333:assumed-role/AWSReservedSSO_AgentDeploy-OrdersApi-Prod_<hash>/<you>"
# allowed
aws lambda get-function-configuration --function-name orders-api
# denied by NeverTheseInProd: expect AccessDenied
aws iam list-roles --max-items 1
# denied by StayInOneRegion: expect AccessDenied
aws lambda list-functions --max-items 1 --region us-west-2
Prove the audit trail. TEAM keeps a history of requests in the UI. The screenshot below is from that same Testing account history: four requests on the Testing account (ai-bedrock-ro pending on Nov 20, ai-bedrock-ro approved on Sep 4, ai-readonly approved on Sep 3, and bedrock-ro approved on Sep 2). Usernames are partially redacted.

TEAM’s grant and revoke are also Identity Center API calls made from the TEAM account, so they show up in that account’s CloudTrail event history:
for evt in CreateAccountAssignment DeleteAccountAssignment; do
aws cloudtrail lookup-events --profile team-admin --region us-east-1 \
--lookup-attributes AttributeKey=EventName,AttributeValue=$evt \
--max-results 5 --query 'Events[].{time:EventTime,event:EventName,by:Username}' --output table
done
And in the target account, with your normal read access there (not the agent’s credentials, which can’t read CloudTrail), look up what the session did, including the denied call:
aws cloudtrail lookup-events --profile prod-readonly --region us-east-1 \
--lookup-attributes AttributeKey=Username,AttributeValue=<your-identity-center-username> \
--max-results 20 --query 'Events[].{time:EventTime,event:EventName,source:EventSource}' --output table
(If you do have CloudTrail Lake, TEAM’s auditor view shows session activity in the UI, and you can query the event data store with aws cloudtrail start-query.)
The two clocks (the part that’s easy to get wrong)
| Clock | What it controls | Who sets it |
|---|---|---|
| Elevated access (request) duration | How long TEAM keeps the Identity Center account assignment. During this window the requester can start new sessions. | The requester, up to the eligibility max (1 hour for me, by default) |
| Permission set session duration | How long each set of temporary credentials is valid | The Identity Center admin, on the permission set (PT1H here) |
Credentials fetched just before the window ends can stay valid after TEAM removes the assignment, for up to the session duration. With a 1 hour request and a 1 hour session, the worst case is roughly an hour past the end of the window. After the window, the assignment is gone:
aws sso-admin list-account-assignments --profile team-admin \
--instance-arn "$INSTANCE_ARN" --account-id 111122223333 --permission-set-arn "$PS_ARN"
# empty
and the permission set disappears from the access portal, but the access keys you already copied keep working until they expire. That’s why I keep the session duration short. If you need to cut a live session, AWS has a guide on revoking federated users’ active sessions.
What broke, and what I’d do differently
- I expected per-request policies. You can’t send a custom policy with a TEAM request. Task-shaped permission sets are the workaround. I’d still like to be able to scope permissions in real time by passing an IAM policy JSON, and I’m considering a custom version that does that.
- CloudTrail Lake. The sample requires it, AWS closed it to new customers, and
nonedoesn’t skip it. Patch the template condition (Step 2). - “Login option is not available.” Fixed with AWS Support’s help.
- “Resource not found.” Users without an email in Identity Center can’t sign in. Set email, name, and active status for every TEAM user before onboarding them (AWS Support’s onboarding list is in Step 4).
- Redeploys. Commit every fix locally before running
deploy.sh. It deploys what’s committed, not what’s in your working tree.
Production considerations
Security
- Run v1.5.1 or later; prefer the latest. Self-hosted means you own CVE response. Watch the repo releases.
- The TEAM account is a delegated admin for Identity Center. Lock it down like one. Nothing else runs there.
- Without CloudTrail Lake you lose TEAM’s in-app session audit. Make sure your org-level CloudTrail setup (trail to S3, or event history at minimum) covers what you need for agent activity.
- TEAM doesn’t enable AWS WAF on the AppSync API or S3 server access logging on the Amplify bucket. Turn both on per your standards.
- TEAM depends on Regional services (Identity Center, Cognito). Keep a non-TEAM break-glass path, and a separate one for the management account.
- Treat the machine-auth client secret as admin access to TEAM.
- In my setup, requesters can approve their own requests, so the approval step is a log trail of elevated access in critical accounts, not a second-person gate. If you want a second person on prod, set that up deliberately.
Scale and edge cases
- TEAM covers one Organization and one Identity Center instance. Three Orgs meant three deployments for me, each with its own policies to keep consistent.
- New accounts need eligibility coverage (and approver coverage if approval is on).
- OU eligibility doesn’t recurse into child OUs.
- v1.5.0 added an optional OU-to-account cache (off by default) because the Organizations APIs behind the account dropdown have low default rate limits. If you turn it on, invalidate it when accounts are created, moved, or deleted.
Cost
TEAM is serverless: Amplify, AppSync, DynamoDB, Lambda, Step Functions, Cognito, plus CloudTrail Lake if you have it. Identity Center itself is free. Without CloudTrail Lake, my cost has been under $5 a month per deployment, depending on use and the Route 53 hosted zone I registered for the custom domain.
The TAGS parameter propagates to TEAM’s stacks. Activate project as a cost allocation tag and you can pull TEAM’s cost directly:
aws ce get-cost-and-usage --time-period Start=2026-10-01,End=2026-11-01 \
--granularity MONTHLY --metrics UnblendedCost \
--filter '{"Tags":{"Key":"project","Values":["iam-identity-center-team"]}}' \
--group-by Type=DIMENSION,Key=SERVICE
Clean up
From iam-identity-center-team/deployment:
# 1. make sure no TEAM grants are still active for the demo permission set
aws sso-admin list-accounts-for-provisioned-permission-set --profile team-admin \
--instance-arn "$INSTANCE_ARN" --permission-set-arn "$PS_ARN"
# 2. remove TEAM policies if you used Terraform
terraform destroy
# 3. remove TEAM (Amplify backend stack, app stack, and the team-idc-app CodeCommit repo)
./destroy.sh
aws cloudformation wait stack-delete-complete --stack-name TEAM-IDC-APP --profile team-admin
# 4. the demo permission set
aws sso-admin delete-inline-policy-from-permission-set --profile team-admin \
--instance-arn "$INSTANCE_ARN" --permission-set-arn "$PS_ARN"
aws sso-admin delete-permission-set --profile team-admin \
--instance-arn "$INSTANCE_ARN" --permission-set-arn "$PS_ARN"
Manual steps from the uninstall doc:
- Identity Center console: Applications > Configured > TEAM IDC APP > Actions > Remove.
- S3 console: empty and delete the versioned
amplify-teamidcapp-main-xxxx-deploymentbucket. - If you used a custom domain, remove the domain association and, if nothing else uses it, the Route 53 hosted zone.
destroy.sh intentionally leaves the delegated admin registrations alone. Only deregister them (aws organizations deregister-delegated-administrator) if nothing else depends on that account being delegated admin.
Wrapping up
Just-in-time access only helps if the elevation is temporary, auditable, and narrower than the standing access it replaces. TEAM doesn’t let you send a policy with the request, but pairing it with small, task-shaped permission sets gets close: the agent gets one job’s worth of access, for an hour, with a record of who asked and why, and you can prove all of it from the CLI.
I’ll write more later on the implementation details, and on using SCPs and RCPs to add more protection around production.
Sources
- TEAM documentation
- Prerequisites, Deployment, Update, Uninstall
- Identity Center integration, Cognito, Machine auth, Terraform
- Policies, Security, Cost, Admin guide
- GitHub: aws-samples/iam-identity-center-team, v1.5.2, v1.5.1
- Issue #586: CloudTrail Lake no longer accepting new customers, PR #599: CloudWatch Logs Insights audit backend
- CloudTrail Lake availability change
- AWS Security Bulletin 2026-112-AWS
- Terraform provider awsteam-contrib/awsteam
- Leapp
- quiverstone/armory: AI permission sets
- AWS Security Blog: TEAM with IAM Identity Center