Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guccio163/parseaws
https://github.com/guccio163/parseaws
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guccio163/parseaws
- Owner: Guccio163
- Created: 2024-04-19T18:07:30.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-20T11:04:03.000Z (9 months ago)
- Last Synced: 2024-11-06T13:56:54.558Z (2 months ago)
- Language: TypeScript
- Size: 10.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.