Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjgpy3/iam-dhall
Create IAM policies using dhall
https://github.com/mjgpy3/iam-dhall
aws dhall iam iam-policies iam-policy
Last synced: 5 days ago
JSON representation
Create IAM policies using dhall
- Host: GitHub
- URL: https://github.com/mjgpy3/iam-dhall
- Owner: mjgpy3
- License: bsd-3-clause
- Created: 2020-01-28T23:35:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-20T23:43:50.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T18:43:12.857Z (3 months ago)
- Topics: aws, dhall, iam, iam-policies, iam-policy
- Language: Dhall
- Size: 11.7 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iam-dhall
Create IAM policies using [dhall][dhall].## Usage
These dhall files were tested using `dhall-to-json` version `1.6.1` though I
expect them to be compatible with other versions of the tool.See the [examples](./examples) for usage examples.
## Why?
With all the nitty-gritty little services in AWS and their interdependence,
creating IAM policies correctly (and maintaining them) can become quite
daunting. This gets increasingly difficult in highly sensitive areas, e.g.
healthcare, national defense, etc... where components are generally expected to
abide by the [principle of least privilege][polp].But these are not the only challenges provided by IAM policies
- many policy errors don't surface until the policy is actually created (or,
heaven forbid, during run-time) and JSON doesn't help to illuminate some of the
easier-to-detect configuration errors
- JSON is inherently schema-less though IAM policies actually have a schema,
albeit a simple one
- JSON doesn't compose or express dependencies without bolting on another
programming language or nesting a wacky, unnatural DSL (again requiring another
language for interpretation)
I believe that [dhall][dhall] speaks to each of these issues.[dhall]: https://dhall-lang.org/
[polp]: https://en.wikipedia.org/wiki/Principle_of_least_privilege