Skip to content

Golang package to parse AWS policies documents

License

Notifications You must be signed in to change notification settings

L30Bola/aws-policy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-Policy

Go Reference Go Report Card

AWS have an amazing SDK for Go with all API functions output typed, and works like clockwork ... until IAM policy documents appear.

AWS describes the policy document in SDK (GetPolicyVersion function ), textually The policy document returned in this structure is URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986)

In practice, it is raw data, and parsing is difficult due to it's structure depends on the policy, and not all fields always appear.
To achieve this I have used golang generics and it seems to work pretty well.

Issues


Feel free to submit issues and enhancement requests.

Please fork this project and open a PR to submit it.

About

Golang package to parse AWS policies documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%