WEED - CLI Tool
August 14, 2022 ยท View on GitHub
Below are the installation instructions for WEED CLI tool.
Usage
WEED can be used to compare policy file or a list of actions to IAM role in AWS.
AWS role ARN/name must be passed to the command using --role flag.
Policy file comparison or action list can be used with --policy-file or --actions flags.
The tool can exit with status code 1 on missing actions by passing --fail-on-missing flag or on any difference using --fail-on-diff flag.
Example
Compare IAM role to a policy file:
weed --role-arn weed-demo --policy-file policy.json --fail-on-missing
Compare IAM role to a list of actions:
weed --role-arn weed-demo --actions ec2:DescribeInstances,ec2:DescribeTags --fail-on-diff
Installation
- Go to the releases page and download the archive for your environment.
- Extract the weed binary from the archive and move it to a directory within your environment's PATH.
- Run
weed versionto see the installed version.