Skip to content

Filter AWS IP ranges to provide input for AWS Security Group Rules

License

Notifications You must be signed in to change notification settings

eifinger/ip-range-filter

Repository files navigation

IP-Range-Filter

Application which allows you to filter IP ranges as defined in https://ip-ranges.amazonaws.com/ip-ranges.json.

Usage

The application is packaged and published as a docker container. If you have Docker installed you can run it locally and use curl or postman to use it.

docker run -p 8080:8080 -d ghcr.io/eifinger/ip-range-filter:latest
curl --location --request GET 'http://localhost:8080/ip-ranges?region=AP'

Allowed regions are EU,US,AP,CN,SA,AF,CA,ALL

You can also use the Swagger-UI under http://localhost:8080http://swagger-ui.html

Testing the application

Due to the fact that this application is very small and has trivial logic no separate unit tests have been written.

All tests are e2e/integration tests which test against a MockWebServer.

This provides the benefit that the whole application with serializing, dependencies,... is tested.

When the application grows in complexity this approach should be revisited.

./gradlew test

About

Filter AWS IP ranges to provide input for AWS Security Group Rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages