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
- Host: GitHub
- URL: https://github.com/mxk/awsscan
- Owner: mxk
- License: bsd-3-clause
- Created: 2019-01-23T22:59:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T14:00:22.000Z (over 6 years ago)
- Last Synced: 2025-01-06T19:47:27.727Z (5 months ago)
- Topics: aws, cloud, devops, go, golang, terraform
- Language: Go
- Size: 106 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
awsscan
=======[](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.