{"id":13820275,"url":"https://github.com/ljacobsson/iam-policies-cli","last_synced_at":"2026-01-18T04:40:09.360Z","repository":{"id":42927217,"uuid":"242172062","full_name":"ljacobsson/iam-policies-cli","owner":"ljacobsson","description":"A CLI tool for building simple to complex IAM policies","archived":false,"fork":false,"pushed_at":"2023-12-05T21:19:49.000Z","size":4087,"stargazers_count":70,"open_issues_count":3,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-19T19:44:11.972Z","etag":null,"topics":["aws-tools","iam"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljacobsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-21T15:36:04.000Z","updated_at":"2024-09-24T18:56:56.000Z","dependencies_parsed_at":"2024-01-13T16:23:07.713Z","dependency_job_id":"1c5ef11e-a53a-4ad4-92e9-71547febfe48","html_url":"https://github.com/ljacobsson/iam-policies-cli","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljacobsson%2Fiam-policies-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljacobsson%2Fiam-policies-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljacobsson%2Fiam-policies-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljacobsson%2Fiam-policies-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljacobsson","download_url":"https://codeload.github.com/ljacobsson/iam-policies-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254488720,"owners_count":22079485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-tools","iam"],"created_at":"2024-08-04T08:01:00.681Z","updated_at":"2026-01-18T04:40:09.192Z","avatar_url":"https://github.com/ljacobsson.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## iam-policies-cli\n\nCLI for generating AWS IAM policy documents, SAM policy templates or [SAM Connectors](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/managing-permissions-connectors.html) based on the [JSON definition](https://awspolicygen.s3.amazonaws.com/js/policies.js) used in the [AWS Policy Generator](https://awspolicygen.s3.amazonaws.com/policygen.html).  \n\nProvide an optional SAM or CloudFormation template and it will let you reference resource ARNs using intrinsic functions for defined resources. \n\nThe mapping of CloudFormation resource type -\u003e the intrinsic function that returns the ARN is based on the [cfn-lint schema for us-east-1](https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/data/CloudSpecs/us-east-1.json)\n\n### :tada: New in v1.0.5 - support for AWS::Serverless::Connectors\nIf you point a SAM template to this tool it will suggest connectable resources and let you generate the `AWS::Serverless::Connector` resource\n![Demo](https://github.com/mhlabs/iam-policies-cli/blob/master/images/demo-connectors.gif?raw=true)\n\n## Installation\n`npm install -g @mhlabs/iam-policies-cli`\n\n## Usage\nExample: `iam-pol -t template.yaml -f yaml`\n\n```\nOptions:\n  -v, --vers                        output the current version\n  -t, --template \u003cfilename\u003e         Template file name (default: \"serverless.template\")\n  -f, --format \u003cJSON|YAML\u003e          Output format (default: \"JSON\")\n  -o, --output \u003cconsole|clipboard\u003e  Template file namePolicy output (default: \"console\")\n  -h, --help                        output usage information\n```\n\n## Example\n![Demo](https://github.com/mhlabs/iam-policies-cli/blob/master/demo.gif?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljacobsson%2Fiam-policies-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljacobsson%2Fiam-policies-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljacobsson%2Fiam-policies-cli/lists"}