/cloud-skills:cloud-access-request-and-iam-lifecycle-managementfrom cloud-skills
Handles operational requests to grant, time-box, and revoke scoped IAM permissions for contractors, new hires, or temporary needs, including expiry enforcement and audit trails.
Ships in cloud-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most IAM risk doesn't come from a badly designed policy — it comes from the hundreds of small, one-off access grants made under time pressure that never get revoked: a contractor's temporary S3 access still active a year after the contract ended, a new hire given broad access "just to get them started" while the ticket to scope it down never gets filed, an on-call engineer's incident break-fix grant that quietly becomes permanent. This skill covers that everyday operational transaction — receiving a request, granting the narrowest permission that satisfies it, attaching a hard expiry, and leaving an audit trail that a review can reconstruct without asking "who approved this and why" — as a repeatable process, not a design exercise. It assumes the underlying policy/role structure already exists (or is designed per cloud-iam-hardening); this skill is about the individual grant/revoke lifecycle transaction on top of that structure.
analytics S3 bucket for 30 days").AdministratorAccess/Owner/roles/editor grants improvised
per request.aws:CurrentTime/aws:TokenIssueTime expiry, Azure AD Privileged
Identity Management (PIM) eligible/time-bound role assignments, GCP
IAM Conditions with a request.time expression, or Okta/Entra
access-package expiration policies if access is federated through an
IdP rather than granted natively per cloud.Capture the request before touching any IAM console/CLI. Minimum fields, logged in the ticket/record: requester, resource/scope needed, business justification, requested duration, and approver. Reject or bounce back any request missing a concrete scope ("prod access") or a duration ("indefinitely," "just in case") — both are the seeds of a permanent, over-broad grant.
Map the request to the narrowest existing role/policy, or a new narrowly scoped one — never a broad standing role "to save time." AWS example — granting a contractor scoped, time-boxed read access to one S3 prefix via a permission set assigned only to their user, with an inline session-duration limit and an IAM Condition belt-and-braces expiry:
# 1. Attach a narrowly scoped inline policy (not an existing broad managed policy)
aws iam put-user-policy \
--user-name contractor-jsmith \
--policy-name analytics-readonly-temp \
--policy-document '{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:ListBucket"],
"Resource": [
"arn:aws:s3:::analytics-reports-<AWS_ACCOUNT_ID>",
"arn:aws:s3:::analytics-reports-<AWS_ACCOUNT_ID>/*"
],
"Condition": {
"DateLessThan": { "aws:CurrentTime": "2026-08-27T00:00:00Z" }
}
}]
}'
Azure example — a PIM eligible (not standing) role assignment scoped to a resource group, time-boxed at activation:
az role assignment create \
--assignee "[email protected]" \
--role "Storage Blob Data Reader" \
--scope "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/analytics-rg"
# then configure as a PIM-eligible (not permanent) assignment in Entra ID PIM,
# with a maximum activation duration (e.g. 8 hours) and required justification
GCP equivalent — an IAM Condition-bound binding on the specific bucket, not a project-level role:
gcloud storage buckets add-iam-policy-binding gs://analytics-reports-<PROJECT_ID> \
--member="user:[email protected]" \
--role="roles/storage.objectViewer" \
--condition='expression=request.time < timestamp("2026-08-27T00:00:00Z"),title=contractor-temp-access,description=Expires 2026-08-27'
Record the grant in the audit trail immediately, linking: the
ticket ID, the exact policy/role/condition applied, the expiry
timestamp, and the approver — in the ticket itself and, ideally, as a
tag/label on the IAM resource (access-ticket=JIRA-1234,
expires=2026-08-27) so the grant is traceable from the cloud console
alone, not only from the ticketing system.
For incident break-fix access, grant via the platform's
time-bound elevation mechanism, not a manually attached policy someone
has to remember to remove. AWS IAM Identity Center or Azure PIM
"activate" flows both auto-expire the session; if neither is available,
attach the same DateLessThan/request.time condition pattern from
step 2 to any manually created break-fix policy, and open a follow-up
ticket to remove it even though it will also stop working once expired
— a policy that silently no-ops past its expiry is still a stale
artifact.
Revoke deliberately, not by deleting broadly. When revoking: remove only the specific policy/binding/role assignment tied to the ticket, not the user's other unrelated access. Confirm scope before removing:
# Verify exactly what's attached before removing anything
aws iam list-user-policies --user-name contractor-jsmith
aws iam get-user-policy --user-name contractor-jsmith --policy-name analytics-readonly-temp
# Only then remove the specific policy
aws iam delete-user-policy --user-name contractor-jsmith --policy-name analytics-readonly-temp
Warning: Revoking access for someone changing teams or roles is not the same as offboarding them entirely. Confirm with the requester/manager exactly which grants are being revoked before running a broad
detach-user-policy/role assignment delete --all/remove-iam-policy-bindingsweep — removing more than the ticket asked for can break access the person still legitimately needs, and removing less leaves a stale grant behind. When in doubt, scope the revoke to exactly what was granted (matched by the ticket ID tag from step 3).
Run a scheduled sweep for expired-but-still-present grants as a
backstop to time-bound conditions (which stop working, but often
don't self-delete the IAM object): a weekly script/scheduled function
that lists policies/bindings with an expires= tag/condition in the
past and either auto-removes them or opens a ticket for a human to
confirm removal — never silently auto-delete a standing (non-
time-boxed) grant this way, only ones explicitly tagged as temporary.
Review pending and denied requests for pattern, not just throughput. If the same kind of request is repeatedly needed (e.g. every new hire on a team needs the same three permissions), that's a signal to fold it into the team's standing least-privilege role design — escalate to cloud-iam-hardening rather than repeating the same one-off grant indefinitely.
cloud-iam-hardening audit can reconcile cloud-side reality against
the ticket trail without cross-referencing two systems by hand.Symptom: A contractor's access review, months after their contract
ended, finds their S3/Blob/GCS read access is still active.
Fix: The original grant had no enforced expiry — only a note in the
ticket to "remove after 30 days" that nobody actioned. Re-grant using a
platform-native time-bound condition (IAM Condition DateLessThan,
PIM eligible assignment, GCP IAM Condition request.time) so expiry is
enforced by the platform, and add the scheduled sweep from step 6 as a
backstop for any grant that predates this practice.
Symptom: An access request for "read-only access to the reports
bucket" gets fulfilled by attaching AmazonS3ReadOnlyAccess (every
bucket in the account), not scoped to the one bucket requested.
Fix: The path of least resistance during a busy on-call/help-desk
shift was to use an existing broad managed policy instead of writing a
three-line scoped inline policy. Always scope the Resource (or
Azure scope/GCP condition) to exactly the resource named in the
ticket — a scoped policy costs one extra minute to write and prevents
an unrelated data-exposure finding later.
Symptom: Revoking access for someone who changed teams accidentally removes their access to a different system they still legitimately need, breaking their work. Fix: The revoke was done as a broad "remove all of this user's non-default policies" cleanup instead of removing only the specific grant tied to the original ticket. Match revocations to the ticket-ID tag applied at grant time (step 3) so a revoke action is as scoped as the original grant — never a blanket sweep of everything attached to a user unless that user is being fully offboarded and that is explicitly confirmed.
Symptom: An incident break-fix access grant to production is still active weeks after the incident closed, and nobody can say why. Fix: Break-fix access was granted as a standing policy attachment instead of through a time-bound elevation mechanism (IAM Identity Center, Azure PIM activation). Always grant incident access with a hard expiry tied to the expected incident window (extend explicitly if the incident runs long, don't grant open-ended "for now" access), and require a post-incident ticket confirming the grant either already expired or was manually removed.
Symptom: An access-request queue has a growing backlog of pending tickets, and engineers start bypassing the process by asking a teammate with existing access to do the work directly ("shadow access"). Fix: This is a process-design failure, not just a queue-depth problem — it produces access equivalent to an ungoverned grant with zero audit trail. Set an SLA for routine, pre-approved-pattern requests (e.g. same-team standard onboarding access) to auto-approve or fast-track, reserving manual approval friction for genuinely unusual or high-privilege requests.
Scenario: A 6-week contractor, jsmith, joins to help the analytics
team build a report. They need read-only access to one S3 bucket
(analytics-reports) and nothing else, for the duration of the contract.
analytics-reports-<AWS_ACCOUNT_ID> (read-only), duration
= 42 days, approver = analytics team lead's manager (a different
person from the requester).s3:GetObject/s3:ListBucket on only
that bucket and prefix, with a DateLessThan condition set to the
contract end date plus one day of buffer.analytics-readonly-temp and tagged (via the
user's tags, since inline policies can't carry tags directly)
access-ticket=JIRA-4821, expires=2026-09-08, granted-by=<manager>.expires= tag in the past; when jsmith's tag matches after
2026-09-08, it opens a low-priority ticket confirming the grant either
already stopped working (condition expired) or flagging it for manual
removal if the IAM object is still present.JIRA-4821; an admin runs
aws iam delete-user-policy --user-name contractor-jsmith --policy-name analytics-readonly-temp
and deletes the now-unused IAM user, closing the loop before the
original expiry date is even reached.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iam, access-control, lifecycle-management, cloud-security, audit-trail
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin cloud-skills14 skills in this plugin
/aws-landing-zone-setupGuides designing and implementing a multi-account AWS landing zone using AWS Organizations, Control Tower, and Account Factory — including the account/OU hierarchy, Service Control Policies, centralized logging, and baseline guardrails. Use when a user asks to "set up a new AWS account structure", "design an AWS landing zone", "implement AWS Control Tower", "create OUs and SCPs", "bootstrap a multi-account AWS environment", or "onboard a new AWS account into our organization".
/azure-landing-zone-setupGuides designing and implementing an Azure landing zone using Management Groups, subscription democratization, Azure Policy, and the Cloud Adoption Framework (CAF) Landing Zone Accelerator pattern. Use when a user asks to "design an Azure landing zone", "set up Management Groups and subscriptions", "implement Azure Policy guardrails", "onboard a new Azure subscription", "structure our Azure tenant", or "migrate to the CAF enterprise-scale landing zone".
/cloud-cost-anomaly-investigationWalks through investigating an unexpected cost spike on this month's cloud bill right now — querying AWS Cost Explorer/CUR, Azure Cost Management, or GCP BigQuery billing export to isolate the specific resource, tag, and team responsible before it becomes a formal FinOps review. Use when a user asks "why did our AWS/Azure/GCP bill jump this week/month," "what's driving this cost anomaly alert," "find what resource caused this spike," or "who do I ask about this spend before the finance review." Distinct from cloud-cost-finops-optimization, which covers the ongoing tagging/rightsizing/commitment program this investigation is a single incident inside of.
/cloud-cost-finops-optimizationGuides establishing cloud cost visibility and reducing spend across AWS, Azure, and GCP through tagging/labeling discipline, rightsizing, commitment-based discounts (Reserved Instances, Savings Plans, Committed Use Discounts), and FinOps showback/chargeback practices. Use when a user asks to "reduce our cloud bill", "set up cost allocation tags", "find idle/oversized resources", "decide between Reserved Instances and Savings Plans", "implement FinOps", "explain why cloud spend went up", or "build a cost dashboard per team".
/cloud-iam-hardeningGuides hardening identity and access management across AWS, Azure, and GCP — least-privilege policy design, eliminating long-lived credentials in favor of federation (OIDC/Workload Identity), break-glass access, and periodic access review. Use when a user asks to "reduce IAM permissions", "remove unused IAM roles", "set up federated/keyless access for CI/CD", "harden our cloud identity posture", "review who has admin access", "implement least privilege", or "get rid of long-lived access keys".
/cloud-native-storage-strategyGuides choosing and configuring cloud storage services — object storage (S3, Azure Blob, GCS), block storage, file storage, and lifecycle/ tiering policies — with encryption, access control, and cost-tiering best practices across AWS, Azure, and GCP. Use when a user asks to "design a storage architecture", "choose between object/block/file storage", "set up storage lifecycle/tiering policies", "encrypt data at rest", "prevent a storage bucket from being public", "reduce storage costs", or "pick a storage class for infrequently accessed data".
Other plugins' skills for the same job