mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Returns every user, group and role in the account, plus every local (customer-managed) policy and every AWS-managed policy actually attached to or used as a permissions boundary by something in the account: the entity lists themselves, their inline and attached policies, group membership, instance profiles, permissions boundaries, and each managed policy's version list. AttachmentCount and PermissionsBoundaryUsageCount are computed by scanning the account's own users, groups and roles rather than read off IamPolicy.getAttachmentCount(): for an AWS-managed policy that field is a single object shared process-wide across every account (attachUserPolicy et al. mutate the same catalog entry every account resolves), so trusting it would leak one account's attachments into another's response. Filed separately as #4205, since fixing it properly means changing the attach/detach methods themselves, well beyond this action. Also fixes two related, smaller gaps found while building this: - CreateInstanceProfile silently dropped a Tags parameter at creation, unlike every other Create* action. - GetInstanceProfile, CreateInstanceProfile and ListInstanceProfilesForRole never serialized an instance profile's own tags into the response. ListInstanceProfiles keeps omitting them: its own operation documentation, like ListRoles's, says it returns a subset of attributes and does not return tags, even though the InstanceProfile shape itself carries no such exclusion note. Policy documents are returned as plain JSON, not URL-encoded as AWS documents them for this action: matches every other IAM action that returns a policy document, none of which URL-encode either. Filter, MaxItems and Marker are not honored; the response always includes everything.