Skip to content

mhlabs/iam-policies-cli

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 3 commits ahead of ljacobsson:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

πŸŽ‰ 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

About

A CLI tool for building simple to complex IAM policies

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%