0.9.202506121 • Published 4 months ago

@cloud-copilot/iam-data v0.9.202506121

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

11 months ago

0.9.202412131

10 months ago

0.8.202411131

11 months ago

0.9.202501221

9 months ago

0.9.202501101

9 months ago

0.9.202503081

7 months ago

0.9.202504171

6 months ago

0.9.202504291

5 months ago

0.9.202505141

5 months ago

0.9.202506111

4 months ago

0.9.202505021

5 months ago

0.8.202411121

11 months ago

0.9.202412141

10 months ago

0.9.202506101

4 months ago

0.9.202503191

7 months ago

0.9.202505011

5 months ago

0.9.202505131

5 months ago

0.9.202411261

10 months ago

0.9.202412111

10 months ago

0.9.202501241

8 months ago

0.9.202501121

9 months ago

0.9.202502211

8 months ago

0.9.202504191

6 months ago

0.9.202505161

5 months ago

0.9.202505281

4 months ago

0.8.202411141

11 months ago

0.9.202412121

10 months ago

0.9.202501231

9 months ago

0.9.202504181

6 months ago

0.9.202505151

5 months ago

0.9.202506121

4 months ago

0.9.202412171

10 months ago

0.9.202504011

6 months ago

0.9.202501301

8 months ago

0.9.202502191

8 months ago

0.9.202503041

7 months ago

0.9.202503281

6 months ago

0.9.202502071

8 months ago

0.9.202504251

5 months ago

0.9.202412181

10 months ago

0.8.202411161

11 months ago

0.9.202505211

5 months ago

0.9.202504121

6 months ago

0.9.202501091

9 months ago

0.9.202503151

7 months ago

0.9.202504241

5 months ago

0.9.202502181

8 months ago

0.9.202503271

6 months ago

0.8.202411071

11 months ago

0.9.202412271

9 months ago

0.9.202503181

7 months ago

0.9.202505242

4 months ago

0.9.202503061

7 months ago

0.9.202505241

4 months ago

0.9.202411191

11 months ago

0.9.202503291

6 months ago

0.9.202502081

8 months ago

0.9.202504261

5 months ago

0.9.202505231

5 months ago

0.9.202503051

7 months ago

0.8.202411091

11 months ago

0.9.202505301

4 months ago

0.9.202503121

7 months ago

0.9.202506071

4 months ago

0.9.202502271

7 months ago

0.9.202502151

8 months ago

0.9.202501181

9 months ago

0.9.202505091

5 months ago

0.9.202411211

11 months ago

0.9.202503111

7 months ago

0.9.202411201

11 months ago

0.9.202506061

4 months ago

0.9.202502261

7 months ago

0.9.202412191

10 months ago

0.9.202412071

10 months ago

0.9.202504111

6 months ago

0.9.202504231

6 months ago

0.9.202505201

5 months ago

0.9.202503261

6 months ago

0.9.202502051

8 months ago

0.9.202503141

7 months ago

0.9.202504221

6 months ago

0.9.202505311

4 months ago

0.9.202504101

6 months ago

0.9.202503011

7 months ago

0.9.202503251

6 months ago

0.9.202502041

8 months ago

0.9.202501071

9 months ago

0.9.202502281

7 months ago

0.9.202412211

10 months ago

0.9.202502111

8 months ago

0.9.202501141

9 months ago

0.9.202503201

7 months ago

0.9.202504091

6 months ago

0.9.202505061

5 months ago

0.9.202506031

4 months ago

0.9.202411251

10 months ago

0.9.202412101

10 months ago

0.9.202501251

8 months ago

0.9.202505291

4 months ago

0.9.202504081

6 months ago

0.9.202505171

5 months ago

0.9.202411221

11 months ago

0.9.202503221

7 months ago

0.9.202502011

8 months ago

0.9.202502251

7 months ago

0.9.202502131

8 months ago

0.9.202501041

9 months ago

0.9.202505081

5 months ago

0.9.202506051

4 months ago

0.9.202501281

8 months ago

0.9.202501161

9 months ago

0.9.202411231

11 months ago

0.9.202412201

10 months ago

0.9.202503211

7 months ago

0.9.202501151

9 months ago

0.9.202504301

5 months ago

0.9.202505071

5 months ago

0.9.202506041

4 months ago

0.8.202411021

11 months ago

0.8.202411011

11 months ago

0.7.202410261

11 months ago

0.8.202410301

11 months ago

0.8.202410261

11 months ago

0.7.202410251

12 months ago

0.7.202410241

12 months ago

0.7.202410231

12 months ago

0.7.202410171

12 months ago

0.7.202410191

12 months ago

0.7.202410161

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

12 months ago

0.6.202410011

1 year ago

0.5.202409261

1 year ago

0.7.202410121

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