Skip to content

opalmer/awsips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWSIPs

Simple package for golang, and possibly other languages in the future, which downloads and returns information from https://ip-ranges.amazonaws.com/ip-ranges.json.

Usage

go

package main

import (
	log "github.com/Sirupsen/logrus"
	"github.com/opalmer/awsips"
)


func main() {
	ranges, err := awsips.Get()
	if err != nil {
		log.Fatal(err)
	}

	for _, prefix := range ranges.Prefixes {
		// logic
	}
}

About

Simple package for golang which downloads and returns https://ip-ranges.amazonaws.com/ip-ranges.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages