0.9.202506121 • Published 6 months ago

@cloud-copilot/iam-data v0.9.202506121

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

11 months ago

0.9.202501101

11 months ago

0.9.202503081

9 months ago

0.9.202504171

8 months ago

0.9.202504291

8 months ago

0.9.202505141

7 months ago

0.9.202506111

6 months ago

0.9.202505021

8 months ago

0.8.202411121

1 year ago

0.9.202412141

12 months ago

0.9.202506101

6 months ago

0.9.202503191

9 months ago

0.9.202505011

8 months ago

0.9.202505131

7 months ago

0.9.202411261

1 year ago

0.9.202412111

1 year ago

0.9.202501241

11 months ago

0.9.202501121

11 months ago

0.9.202502211

10 months ago

0.9.202504191

8 months ago

0.9.202505161

7 months ago

0.9.202505281

7 months ago

0.8.202411141

1 year ago

0.9.202412121

1 year ago

0.9.202501231

11 months ago

0.9.202504181

8 months ago

0.9.202505151

7 months ago

0.9.202506121

6 months ago

0.9.202412171

12 months ago

0.9.202504011

9 months ago

0.9.202501301

11 months ago

0.9.202502191

10 months ago

0.9.202503041

9 months ago

0.9.202503281

9 months ago

0.9.202502071

10 months ago

0.9.202504251

8 months ago

0.9.202412181

12 months ago

0.8.202411161

1 year ago

0.9.202505211

7 months ago

0.9.202504121

8 months ago

0.9.202501091

11 months ago

0.9.202503151

9 months ago

0.9.202504241

8 months ago

0.9.202502181

10 months ago

0.9.202503271

9 months ago

0.8.202411071

1 year ago

0.9.202412271

12 months ago

0.9.202503181

9 months ago

0.9.202505242

7 months ago

0.9.202503061

9 months ago

0.9.202505241

7 months ago

0.9.202411191

1 year ago

0.9.202503291

9 months ago

0.9.202502081

10 months ago

0.9.202504261

8 months ago

0.9.202505231

7 months ago

0.9.202503051

9 months ago

0.8.202411091

1 year ago

0.9.202505301

7 months ago

0.9.202503121

9 months ago

0.9.202506071

6 months ago

0.9.202502271

10 months ago

0.9.202502151

10 months ago

0.9.202501181

11 months ago

0.9.202505091

7 months ago

0.9.202411211

1 year ago

0.9.202503111

9 months ago

0.9.202411201

1 year ago

0.9.202506061

6 months ago

0.9.202502261

10 months ago

0.9.202412191

12 months ago

0.9.202412071

1 year ago

0.9.202504111

8 months ago

0.9.202504231

8 months ago

0.9.202505201

7 months ago

0.9.202503261

9 months ago

0.9.202502051

10 months ago

0.9.202503141

9 months ago

0.9.202504221

8 months ago

0.9.202505311

7 months ago

0.9.202504101

8 months ago

0.9.202503011

10 months ago

0.9.202503251

9 months ago

0.9.202502041

10 months ago

0.9.202501071

11 months ago

0.9.202502281

10 months ago

0.9.202412211

12 months ago

0.9.202502111

10 months ago

0.9.202501141

11 months ago

0.9.202503201

9 months ago

0.9.202504091

8 months ago

0.9.202505061

7 months ago

0.9.202506031

6 months ago

0.9.202411251

1 year ago

0.9.202412101

1 year ago

0.9.202501251

11 months ago

0.9.202505291

7 months ago

0.9.202504081

8 months ago

0.9.202505171

7 months ago

0.9.202411221

1 year ago

0.9.202503221

9 months ago

0.9.202502011

11 months ago

0.9.202502251

10 months ago

0.9.202502131

10 months ago

0.9.202501041

11 months ago

0.9.202505081

7 months ago

0.9.202506051

6 months ago

0.9.202501281

11 months ago

0.9.202501161

11 months ago

0.9.202411231

1 year ago

0.9.202412201

12 months ago

0.9.202503211

9 months ago

0.9.202501151

11 months ago

0.9.202504301

8 months ago

0.9.202505071

7 months ago

0.9.202506041

6 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