Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guccio163/parseaws


https://github.com/guccio163/parseaws

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

Verifying AWS::IAM::Role Policy
---
This is a recruitment task verifying an input done for Remitly.

Task is written in Typescript because:
- I feel confident and efficent in it
- I hope it will stand out from the rest :)

However, if writing function in Go would be additionally appreciated, I can send the task in Go too.

---
Project includes unit tests (verifyTest.test.ts) and edge cases such as inputting non-compatible policy or multible Resources. Instruction didn't specify how to resolve a situation with multiple Resources, so I assumed that function should return false if any of the Statements has Resources: "*".

How to run tests?

```bash
cd parseAWS
npm i
jest
```
---
Main function is in the main.ts file and theoretically can be run by compiling this file and runnig its .js product:
```bash
tsc main
node main
```
It won't return anything though, because there is no executable code, just function and type definitions.