Slice 1: exploratory raw backbone dump (scan --raw) - #11
Merged
Conversation
- internal/awsscan: AWS SDK v2 client (default cred chain) + paginated EC2 Describe* collectors for VPC/subnet/route-table/IGW/NAT/ENI/SG - scan --raw dumps the raw backbone as JSON to inspect real shapes before locking the topology.json schema Part of #6
Applies vpc-id (attachment.vpc-id for IGWs) filters across all backbone Describe* calls; omitted = whole region. Part of #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First task of Slice 1 (#6).
What
internal/awsscan: AWS SDK v2 client via the default credential chain (--profileoptional), plus paginated EC2Describe*collectors for the network backbone (VPC, subnets, route tables, IGW/NAT, ENIs, security groups).scan --rawdumps the raw backbone as indented JSON to stdout so we can design thetopology.jsonschema from real field shapes (the exploratory-first approach).Not in scope yet
topology.jsonschema (Design topology.json v0 schema (curated-generous, versioned) #7) andscanproper (Implement scan -> write topology.json #8) come next, informed by what this dump reveals.Proof
reachr scan --raw --region <r> [--profile <p>] > raw.jsonagainst a real VPC.scanwithout--rawstill returns "not implemented".Part of #6.