Skip to content

Commit

Permalink
feat: SAM Policy Template support + autocomplete search
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Mar 1, 2021
1 parent 09352c1 commit 689c23b
Show file tree
Hide file tree
Showing 4 changed files with 101,658 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## iam-policies-cli

CLI for generating AWS IAM policy documents 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).
CLI for generating AWS IAM policy documents or SAM policy templates 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).

Provide an optional SAM or CloudFormation template and it will let you reference resource ARNs using intrinsic functions for defined resources.

The mapping of CloudFormation resource type -> the intrinsic function that returns the ARN is taken from a JSON representation of [this table](https://theburningmonk.com/cloudformation-ref-and-getatt-cheatsheet/) and might not be up-to-date with the latest releases.
The mapping of CloudFormation resource type -> 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)

## Installation
`npm install -g @mhlabs/iam-policies-cli`
Expand Down
Loading

0 comments on commit 689c23b

Please sign in to comment.