aws_sso_generate_profiles
Writes AWS config profiles for IAM Identity Center account and role assignments after SSO login, with selection and dry-run options to preview changes before updating the file.
Instructions
Write [profile ...] sections into the AWS config file for IAM Identity Center account/role assignments (after aws_login_start with ssoSession). Default: every assignment, capped at 200 (the rest are returned as dropped); or pass selection. Names default to '{accountName}-{roleName}', with the account ID inserted on a clash ('prod-111111111111-Admin'). Each section carries a managed-by: aws-mcp marker; a section without it is never modified -- a name clash with one is reported in skipped. region is written only when a profile is created. Use dryRun to preview. Selections are checked against the live assignments; IAM stays the authority.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ssoSession": "<ssoSession>"
},
"name": "aws_sso_generate_profiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Report what would be written without touching the file. | |
| region | No | Default region written into each new profile. Default: the sso-session's sso_region. | |
| selection | No | Which account/role pairs to write. Default: every assignment (capped at 200; pass a selection beyond that). | |
| ssoSession | Yes | sso-session name logged in via aws_login_start. | |
| nameTemplate | No | Profile name template. Placeholders: {accountName} {accountId} {roleName} {ssoSession}. Default '{accountName}-{roleName}'. |