0.9.202506121 • Published 5 months ago

@cloud-copilot/iam-data v0.9.202506121

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

12 months ago

0.9.202412131

11 months ago

0.8.202411131

12 months ago

0.9.202501221

9 months ago

0.9.202501101

10 months ago

0.9.202503081

8 months ago

0.9.202504171

7 months ago

0.9.202504291

6 months ago

0.9.202505141

6 months ago

0.9.202506111

5 months ago

0.9.202505021

6 months ago

0.8.202411121

12 months ago

0.9.202412141

11 months ago

0.9.202506101

5 months ago

0.9.202503191

7 months ago

0.9.202505011

6 months ago

0.9.202505131

6 months ago

0.9.202411261

11 months ago

0.9.202412111

11 months ago

0.9.202501241

9 months ago

0.9.202501121

10 months ago

0.9.202502211

8 months ago

0.9.202504191

6 months ago

0.9.202505161

6 months ago

0.9.202505281

5 months ago

0.8.202411141

12 months ago

0.9.202412121

11 months ago

0.9.202501231

9 months ago

0.9.202504181

6 months ago

0.9.202505151

6 months ago

0.9.202506121

5 months ago

0.9.202412171

11 months ago

0.9.202504011

7 months ago

0.9.202501301

9 months ago

0.9.202502191

8 months ago

0.9.202503041

8 months ago

0.9.202503281

7 months ago

0.9.202502071

9 months ago

0.9.202504251

6 months ago

0.9.202412181

11 months ago

0.8.202411161

12 months ago

0.9.202505211

5 months ago

0.9.202504121

7 months ago

0.9.202501091

10 months ago

0.9.202503151

8 months ago

0.9.202504241

6 months ago

0.9.202502181

8 months ago

0.9.202503271

7 months ago

0.8.202411071

12 months ago

0.9.202412271

10 months ago

0.9.202503181

8 months ago

0.9.202505242

5 months ago

0.9.202503061

8 months ago

0.9.202505241

5 months ago

0.9.202411191

11 months ago

0.9.202503291

7 months ago

0.9.202502081

9 months ago

0.9.202504261

6 months ago

0.9.202505231

5 months ago

0.9.202503051

8 months ago

0.8.202411091

12 months ago

0.9.202505301

5 months ago

0.9.202503121

8 months ago

0.9.202506071

5 months ago

0.9.202502271

8 months ago

0.9.202502151

9 months ago

0.9.202501181

9 months ago

0.9.202505091

6 months ago

0.9.202411211

11 months ago

0.9.202503111

8 months ago

0.9.202411201

11 months ago

0.9.202506061

5 months ago

0.9.202502261

8 months ago

0.9.202412191

10 months ago

0.9.202412071

11 months ago

0.9.202504111

7 months ago

0.9.202504231

6 months ago

0.9.202505201

5 months ago

0.9.202503261

7 months ago

0.9.202502051

9 months ago

0.9.202503141

8 months ago

0.9.202504221

6 months ago

0.9.202505311

5 months ago

0.9.202504101

7 months ago

0.9.202503011

8 months ago

0.9.202503251

7 months ago

0.9.202502041

9 months ago

0.9.202501071

10 months ago

0.9.202502281

8 months ago

0.9.202412211

10 months ago

0.9.202502111

9 months ago

0.9.202501141

10 months ago

0.9.202503201

7 months ago

0.9.202504091

7 months ago

0.9.202505061

6 months ago

0.9.202506031

5 months ago

0.9.202411251

11 months ago

0.9.202412101

11 months ago

0.9.202501251

9 months ago

0.9.202505291

5 months ago

0.9.202504081

7 months ago

0.9.202505171

6 months ago

0.9.202411221

11 months ago

0.9.202503221

7 months ago

0.9.202502011

9 months ago

0.9.202502251

8 months ago

0.9.202502131

9 months ago

0.9.202501041

10 months ago

0.9.202505081

6 months ago

0.9.202506051

5 months ago

0.9.202501281

9 months ago

0.9.202501161

10 months ago

0.9.202411231

11 months ago

0.9.202412201

10 months ago

0.9.202503211

7 months ago

0.9.202501151

10 months ago

0.9.202504301

6 months ago

0.9.202505071

6 months ago

0.9.202506041

5 months ago

0.8.202411021

12 months ago

0.8.202411011

12 months ago

0.7.202410261

1 year ago

0.8.202410301

12 months 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