Skip to content

Remove the IAM groups, policies and user tags replaced by the new permission levels #227

Open

Description

@ale210

Dependency

Overview

We need to remove the old IAM groups, policies, direct attachments and user tags once every user has moved to the new permission levels, so there is one way access is granted instead of two. Nothing in this ticket should be deleted while someone still relies on it.

Action Items

The list below was accurate on 2026-11-11. Re-check it against the live account and DR-IAM-user-permissions before starting — the implementation tickets may already have removed some of it, or kept something on purpose.

  • Confirm no user is still in a group being removed: aws iam get-group --group-name <name> should list no users.
  • Before deleting anything, save each resource's current config (aws iam get-group, get-policy plus get-policy-version, list-attached-user-policies) so it can be recreated.
  • Remove the old groups the DR replaces, through Terraform: project-leads (terraform/aws-groups-legacy.tf), and read-only-group and ops-leads (terraform/aws-groups.tf) if the DR replaces them.
  • Remove policies left with nothing to do:
    • IAMServicesSupervisor — terraform/aws-custom-policies.tf and terraform/aws-custom-policies/level-4-iam-services-supervisor-policy.json; already attached to nothing
    • TerraformPolicies — only attached to project-leads; not in Terraform, so delete it with the CLI
    • ManageHomeUniteUsECR — attached directly to tyler.thome; not in Terraform
  • Remove direct policy attachments on users, so all access comes through groups: tyler.thome (ManageHomeUniteUsECR, AmazonCognitoPowerUser, AWSCloudShellFullAccess) and the direct IAMUserChangePassword on fangyiliu and testiamuser. Check first that the new level covers what tyler.thome actually uses.
  • Remove the Access Level tag and the capital-P Project tag from every user in terraform/aws-users.tf, unless the DR keeps one of them. If the DR uses a lowercase project user tag, add that in the same change.
  • Do not change bonnie_hfla or chelseybeck — their group, their direct IAMUserChangePassword, or AWSOrganizationsFullAccess on chelseybeck. This epic leaves both users as they are (see the epic).
  • Decide what happens to testiamuser and jack.pashayan (no group) — keep, move or delete — and record it in a comment on this issue.
  • After the PR merges and Terraform applies: run aws iam get-account-authorization-details --filter User Group and confirm every user is in exactly the groups the DR maps them to, has no directly attached policies other than the agreed exceptions, and that none of the removed groups or policies still exists.

Resources/Instructions

  • Parent epic — the full current-state table.
  • DR-IAM-user-permissions on the devops wiki — which old pieces it replaces and which it keeps.
  • terraform/aws-groups.tf, terraform/aws-groups-legacy.tf, terraform/aws-users.tf, terraform/aws-users-legacy.tf, terraform/aws-custom-policies.tf.
  • aws iam delete-policy refuses a policy that still has non-default versions; delete those first with aws iam delete-policy-version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions