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

https://github.com/mxk/awsscan

Tool for mapping all resources in an AWS account
https://github.com/mxk/awsscan

aws cloud devops go golang terraform

Last synced: 4 months ago
JSON representation

Tool for mapping all resources in an AWS account

Awesome Lists containing this project

README

        

awsscan
=======

[![GoDoc](https://godoc.org/github.com/mxk/awsscan?status.svg)](https://godoc.org/github.com/mxk/awsscan)

A tool for mapping all resources in an AWS account.

Adding scan service support
---------------------------

1. Build svcgen: `cd aws/scan/svcgen && go install -tags codegen && cd -`
2. Generate service template: `svcgen aws/scan/svc [...]`
* Service names match [AWS SDK v2 service directory
names](https://github.com/aws/aws-sdk-go-v2/tree/master/service).
3. Open the template file `aws/scan/svc/.go` and remove
unnecessary API calls.
4. Implement non-root API calls. See other services for examples. Most patterns
are handled by `Ctx.Split`, `Ctx.Group`, and `Ctx.CopyInput`.
5. Format code and run unit tests: `go fmt ./... && go test ./...`
6. Build and run a scan: `go install && awsscan -services `
* Ideally, this should be done with an account that contains resources for
the new service, but a scan that returns nothing is still useful to verify
that the root calls do not return unexpected errors.