0.9.202506121 • Published 7 months ago

@cloud-copilot/iam-data v0.9.202506121

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

AWS IAM Data

Description

Contains IAM data for AWS actions, resources, and conditions based on IAM policy documents. This is intended to be used in downstream projects to provide a reference for IAM policy documents.

Published in ESM and CommonJS.

Data Updates

Data is scanned daily and a new version is published if there are changes. The version number is updated to reflect the date of the last update and the function iamDataUpdatedAt() returns the date of the last data update. This process is managed outside this repo.

Usage

npm install @cloud-copilot/iam-data
import { iamServiceKeys, iamActionDetails, iamActionsForService, iamServiceName } from '@cloud-copilot/iam-data';

// Iterate through all actions in all services
const serviceKeys = await iamServiceKeys()
for(const serviceKey of serviceKeys) {
  const serviceName = await iamServiceName(serviceKey);
  console.log(`Getting Actions for ${serviceName}`);
  const actions = await iamActionsForService(serviceKey);
  for(const action of actions) {
    const actionDetails = await iamActionDetails(serviceKey, action);
    console.log(actionDetails);
  }
}

API

Services

  • iamServiceKeys() - Returns an array of all service keys such as 's3', 'ec2', etc.
  • iamServiceName(serviceKey: string) - Returns the service name for a given service key.
  • iamServiceExists(serviceKey: string) - Returns true if the service key exists.

Actions

  • iamActionsForService(serviceKey: string) - Returns an array of all actions for a given service key.
  • iamActionDetails(serviceKey: string, actionKey: string) - Returns an object with the action details such as description, resourceTypes, and conditionKeys.
  • iamActionExists(serviceKey: string, actionKey: string) - Returns true if the action exists.

Resources

  • iamResourceTypesForService(serviceKey: string) - Returns an array of all resource types for a given service key.
  • iamResourceTypeDetails(serviceKey: string, resourceTypeKey: string) - Returns an object with the resource type details such as description, arnFormat, and conditionKeys.
  • iamResourceTypeExists(serviceKey: string, resourceTypeKey: string) - Returns true if the resource type exists.

Conditions Keys

  • iamConditionKeysForService(serviceKey: string) - Returns an array of all condition keys for a given service key.
  • iamConditionKeyDetails(serviceKey: string, conditionKey: string) - Returns an object with the condition key details such as description, conditionValueTypes, and conditionOperators.
  • iamConditionKeyExists(serviceKey: string, conditionKey: string) - Returns true if the condition key exists.

Version Info

The version is number is formatted as major.minor.updatedAt. The updatedAt is the date the data was last updated in the format YYYYMMDDX where X is a counter to enable publishing more than once per day if necessary. For example version 0.1.202408291 has data updated on August 29th, 2024.

The version can be accessed using the iamDataVersion() method.

There is also iamDataUpdatedAt() which returns the date the data was last updated.

0.9.202411161

1 year ago

0.9.202412131

1 year ago

0.8.202411131

1 year ago

0.9.202501221

12 months ago

0.9.202501101

1 year ago

0.9.202503081

11 months ago

0.9.202504171

9 months ago

0.9.202504291

9 months ago

0.9.202505141

8 months ago

0.9.202506111

7 months ago

0.9.202505021

9 months ago

0.8.202411121

1 year ago

0.9.202412141

1 year ago

0.9.202506101

7 months ago

0.9.202503191

10 months ago

0.9.202505011

9 months ago

0.9.202505131

8 months ago

0.9.202411261

1 year ago

0.9.202412111

1 year ago

0.9.202501241

12 months ago

0.9.202501121

1 year ago

0.9.202502211

11 months ago

0.9.202504191

9 months ago

0.9.202505161

8 months ago

0.9.202505281

8 months ago

0.8.202411141

1 year ago

0.9.202412121

1 year ago

0.9.202501231

12 months ago

0.9.202504181

9 months ago

0.9.202505151

8 months ago

0.9.202506121

7 months ago

0.9.202412171

1 year ago

0.9.202504011

10 months ago

0.9.202501301

12 months ago

0.9.202502191

11 months ago

0.9.202503041

11 months ago

0.9.202503281

10 months ago

0.9.202502071

12 months ago

0.9.202504251

9 months ago

0.9.202412181

1 year ago

0.8.202411161

1 year ago

0.9.202505211

8 months ago

0.9.202504121

9 months ago

0.9.202501091

1 year ago

0.9.202503151

10 months ago

0.9.202504241

9 months ago

0.9.202502181

11 months ago

0.9.202503271

10 months ago

0.8.202411071

1 year ago

0.9.202412271

1 year ago

0.9.202503181

10 months ago

0.9.202505242

8 months ago

0.9.202503061

11 months ago

0.9.202505241

8 months ago

0.9.202411191

1 year ago

0.9.202503291

10 months ago

0.9.202502081

12 months ago

0.9.202504261

9 months ago

0.9.202505231

8 months ago

0.9.202503051

11 months ago

0.8.202411091

1 year ago

0.9.202505301

8 months ago

0.9.202503121

10 months ago

0.9.202506071

8 months ago

0.9.202502271

11 months ago

0.9.202502151

11 months ago

0.9.202501181

1 year ago

0.9.202505091

9 months ago

0.9.202411211

1 year ago

0.9.202503111

10 months ago

0.9.202411201

1 year ago

0.9.202506061

8 months ago

0.9.202502261

11 months ago

0.9.202412191

1 year ago

0.9.202412071

1 year ago

0.9.202504111

9 months ago

0.9.202504231

9 months ago

0.9.202505201

8 months ago

0.9.202503261

10 months ago

0.9.202502051

12 months ago

0.9.202503141

10 months ago

0.9.202504221

9 months ago

0.9.202505311

8 months ago

0.9.202504101

9 months ago

0.9.202503011

11 months ago

0.9.202503251

10 months ago

0.9.202502041

12 months ago

0.9.202501071

1 year ago

0.9.202502281

11 months ago

0.9.202412211

1 year ago

0.9.202502111

11 months ago

0.9.202501141

1 year ago

0.9.202503201

10 months ago

0.9.202504091

10 months ago

0.9.202505061

9 months ago

0.9.202506031

8 months ago

0.9.202411251

1 year ago

0.9.202412101

1 year ago

0.9.202501251

12 months ago

0.9.202505291

8 months ago

0.9.202504081

10 months ago

0.9.202505171

8 months ago

0.9.202411221

1 year ago

0.9.202503221

10 months ago

0.9.202502011

12 months ago

0.9.202502251

11 months ago

0.9.202502131

11 months ago

0.9.202501041

1 year ago

0.9.202505081

9 months ago

0.9.202506051

8 months ago

0.9.202501281

12 months ago

0.9.202501161

1 year ago

0.9.202411231

1 year ago

0.9.202412201

1 year ago

0.9.202503211

10 months ago

0.9.202501151

1 year ago

0.9.202504301

9 months ago

0.9.202505071

9 months ago

0.9.202506041

8 months ago

0.8.202411021

1 year ago

0.8.202411011

1 year ago

0.7.202410261

1 year ago

0.8.202410301

1 year ago

0.8.202410261

1 year ago

0.7.202410251

1 year ago

0.7.202410241

1 year ago

0.7.202410231

1 year ago

0.7.202410171

1 year ago

0.7.202410191

1 year ago

0.7.202410161

1 year ago

0.7.202410051

1 year ago

0.6.202409281

1 year ago

0.7.202410011

1 year ago

0.7.202410021

1 year ago

0.7.202410031

1 year ago

0.6.202409261

1 year ago

0.7.202410111

1 year ago

0.6.202410011

1 year ago

0.5.202409261

1 year ago

0.7.202410121

1 year ago

0.6.202409271

1 year ago

0.5.202409251

1 year ago

0.5.202409241

1 year ago

0.4.202409101

1 year ago

0.1.202408291

1 year ago

0.1.202408251

1 year ago

0.2.202408311

1 year ago

0.2.202408313

1 year ago

0.2.202408312

1 year ago

0.4.202409061

1 year ago

0.4.202409181

1 year ago

0.4.202409141

1 year ago

0.2.202409011

1 year ago

0.3.202409061

1 year ago

0.1.202408301

1 year ago

0.4.202409071

1 year ago

0.4.202409191

1 year ago

0.5.202409201

1 year ago

0.5.1-beta14

1 year ago

0.4.202409201

1 year ago

0.5.1-beta15

1 year ago

0.5.1-beta12

1 year ago

0.5.1-beta13

1 year ago

0.5.1-beta10

1 year ago

0.5.1-beta11

1 year ago

0.5.1-beta18

1 year ago

0.5.1-beta16

1 year ago

0.5.1-beta17

1 year ago

0.3.202409051

1 year ago

0.3.202409011

1 year ago

0.5.202409231

1 year ago

0.5.1-beta6

1 year ago

0.5.1-beta5

1 year ago

0.5.1-beta4

1 year ago

0.1.202408281

1 year ago

0.5.1-beta3

1 year ago

0.5.1-beta9

1 year ago

0.5.1-beta8

1 year ago

0.2.202408302

1 year ago

0.5.1-beta7

1 year ago

0.2.202408301

1 year ago

0.3.202409041

1 year ago

0.5.1-beta1

1 year ago

0.4.202409171

1 year ago

0.4.202409131

1 year ago

0.0.202408253

1 year ago

0.0.202408252

1 year ago

0.0.202408251

1 year ago

0.0.202408250

1 year ago

0.0.1

1 year ago