Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roggervalf/iam-policies
Iam policies implementation for create roles and manage permissions
https://github.com/roggervalf/iam-policies
deno iam-policies permissions roles-permission-management typescript
Last synced: 3 months ago
JSON representation
Iam policies implementation for create roles and manage permissions
- Host: GitHub
- URL: https://github.com/roggervalf/iam-policies
- Owner: roggervalf
- License: mit
- Created: 2019-11-11T05:39:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T21:55:19.000Z (10 months ago)
- Last Synced: 2024-04-24T02:35:07.670Z (10 months ago)
- Topics: deno, iam-policies, permissions, roles-permission-management, typescript
- Language: TypeScript
- Homepage: https://roggervalf.github.io/iam-policies/en/
- Size: 11.4 MB
- Stars: 24
- Watchers: 2
- Forks: 7
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# iam-policies
[![NPM](https://img.shields.io/npm/v/iam-policies.svg)](https://www.npmjs.com/package/iam-policies) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Build Status](https://github.com/roggervalf/iam-policies/actions/workflows/node.yml/badge.svg?branch=master)](https://github.com/roggervalf/iam-policies/actions/workflows/node.yml/badge.svg?branch=master) [![NPM downloads](https://img.shields.io/npm/dm/iam-policies)](https://www.npmjs.com/package/iam-policies) [![Coverage Status](https://coveralls.io/repos/github/roggervalf/iam-policies/badge.svg?branch=master)](https://coveralls.io/github/roggervalf/iam-policies?branch=master) [![deno doc](https://doc.deno.land/badge.svg)](https://deno.land/x/iam_policies) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
## About
Define custom IAM Policies by allowed or denied set of actions against a set of resources with optional context and conditions.
Deny rules trump allow rules.
This is based of [@ddt/iam](https://www.npmjs.com/package/@ddt/iam) and [AWS Reference Policies ](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html).
## Install
```bash
npm install --save iam-policies
```Or
```bash
yarn add iam-policies
```## Deno import
```ts
// @deno-types="https://raw.githubusercontent.com/roggervalf/iam-policies/master/dist/main.d.ts"
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'https://raw.githubusercontent.com/roggervalf/iam-policies/master/dist/main.es.js';
```or
```ts
// @deno-types="https://deno.land/x/iam_policies@master/dist/main.d.ts"
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'https://deno.land/x/iam_policies@master/dist/main.es.js';
```## Node import
```js
import {
ActionBasedPolicy,
IdentityBasedPolicy,
ResourceBasedPolicy
} from 'iam-policies';
```## Examples
- Here is an example of using it into a [GraphQL project](https://github.com/roggerval/tech-insiders-nodejs) (step 7).
## Features
Supports these glob features:
- Policies creation (ActionBasedPolicy, [IdentityBasedPolicy and ResourceBasedPolicy](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policy-types))
- Permission verifications## Documentation
Please click on the language that you prefer
- Translations:
- [Chinese docs](https://roggervalf.github.io/iam-policies/zh-CN/) by [@mickymao1110](https://github.com/mickymao1110) (< v3.5.0 )
- [English docs](https://roggervalf.github.io/iam-policies/en/) by [@roggervalf](https://github.com/roggervalf)- [Api documentation](https://github.com/roggervalf/iam-policies/blob/master/docs/gitbook/api/index.md)
## Article
[How to build a Deno module](https://medium.com/@rogger.valverde/how-to-build-a-deno-module-dc383eee8edb)
## Contributing
Fork the repo, make some changes, submit a pull-request! Here is the [contributing](contributing.md) doc that has some details.
## License
MIT © [roggervalf](https://github.com/roggervalf)