1.0.7 • Published 5 months ago

@mhlabs/iam-policies-cli v1.0.7

Weekly downloads
8
License
ISC
Repository
-
Last release
5 months ago

iam-policies-cli

CLI for generating AWS IAM policy documents, SAM policy templates or SAM Connectors based on the JSON definition used in the AWS Policy Generator.

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 based on the cfn-lint schema for us-east-1

:tada: New in v1.0.5 - support for AWS::Serverless::Connectors

If you point a SAM template to this tool it will suggest connectable resources and let you generate the AWS::Serverless::Connector resource Demo

Installation

npm install -g @mhlabs/iam-policies-cli

Usage

Example: iam-pol -t template.yaml -f yaml

Options:
  -v, --vers                        output the current version
  -t, --template <filename>         Template file name (default: "serverless.template")
  -f, --format <JSON|YAML>          Output format (default: "JSON")
  -o, --output <console|clipboard>  Template file namePolicy output (default: "console")
  -h, --help                        output usage information

Example

Demo

1.0.7

5 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago