AWS Infrastructure Diagram

Alan Blackmore
6 min readApr 28, 2021

There are many reasons why you would want to accurately diagram and document your AWS environments. Knowing exactly what is running based on the actual resources configured in your AWS environments is probably the number one reason to use automated AWS Infrastructure Diagram software over manually drawn diagrams.

The automation process discovers exactly what is running, so you can provide the tools and documentation to onboard engineers faster, get to grips with new client networks or report to management in an easily understood visual format.

AWS Infrastructure Diagram Generator

Sitting down with Visio and your AWS Icon template pack is a daunting prospect if your AWS environment contains more than a handful of VPC’s, EC2 instances or a load balancer or two.

Not only do you need to manually lay out your VPC’s and resources which can take hours or even days, once you have drawn the diagrams, you then need to keep them up to date if they are going to be of any practical use. That’s where using automated AWS diagram software comes into play.

AWS Architecture Diagrams

There are a number of network topology diagrams that can prove useful to your engineering and DevOps team. These include an AWS Infrastructure diagram like this:

The above diagram logically lays out all the resources discovered when an AWS account is connected to Hava’s AWS VPC Diagram Generator. The main VPC (the green rectangle) is surrounded by associated resources like internet and VPN gateways, S3 Buckets, VPC endpoints, VPC peering connections, Elastic Beanstalk environments.

Within the VPC, the configured availability zones are set out in columns that contain the individual subnets set up in those AZ’s. All the resources contained in each subnet are visualized as are any load balancers routing traffic to the various subnets.

Having this diagram automatically created from configuration data enables interrogation of each of the resources to see the settings and associations related to it. By clicking on any of the individual resource icons, the attribute pane on the right then displays all the known details pertaining to the resource. Something that simply isn’t possible with manually created drag-and-drop diagram makers.

Automating the diagram build using AWS Diagram Software also reveals resources you may not be aware of. Long forgotten database instances and sometimes entire dev or test environments are regularly discovered by this automation process.

Custom AWS VPC Architecture Diagram

There is always somewhat of a compromise when it comes to generated documentation. The way that Hava discovers and builds diagrams is based at a VPC level. If more than one VPC is detected in your Amazon cloud account, then one diagram per VPC is created.

You may however want to combine two or more VPCs onto a single diagram. This can be achieved using the custom query function built into hava.io.

AWS VPC Diagram Generator

This custom query would create a new ‘on-the-fly’ custom diagram containing the two nominated AWS VPCs specified. You would then have the ability to save this diagram so it is always present in your dashboard until you choose to delete it. As with all other diagrams, your custom AWS infrastructure diagram would keep itself up to date and retain a version history every time a resource change is detected.

AWS VPC Components Diagram

Sometimes it is just not practical to include every single component onto a diagram. Take for instance Network Interfaces, Volumes or WAF Rules. In a large network with hundreds or maybe thousands of these non essential components, trying to visualize every single component would make the diagram practically unreadable, or certainly too busy to easily recognise the core components.

Hava solves this issue by providing detailed components list that details every single resource detected.

This comprehensive list of resources can also be sorted and exported along with estimated monthly costs so you can see at a glance what resources are costing you the most money. This detailed view is also interactive. Selecting a resource on the diagram will reveal all the known settings and associations that resource has.

AWS Security Diagrams

Another major benefit of automating the discovery of your AWS environment diagrams is the ability to capture and visualize security group information.

AWS Security Architecture Diagram

With a security group diagram you can view all of your configured security groups with the open ports overlaid to enable an instant visual snapshot of the traffic flow, ingress and egress points. The diagram also being interactive ensures you can select a particular security group on the diagram and important information relating to the group, like the connected resources, ingress and egress IP addresses and associated tags.

AWS Well Architected Compliance

Hava also provides AWS Compliance Reporting via a reporting module on the environments dashboard.

The report steps you through all the regions and resources you have configured and will draw your attention to findings graded as high, medium or low and the reasoning behind the finding.

Automated AWS Diagram Updates

Finally, your documentation is only useful if it is accurate. It is quite possible to spend weeks manually constructing network topology documentation only to have it rendered useless by a minor change to your network configuration.

Built into Hava is an auto-sync function that polls connected data sources and automatically updates diagram sets when changes are detected. This means your diagrams are always current and up to date. The superseded diagram sets aren’t discarded however. They are placed into a version history that enables you to pull up older diagrams in the same fully interactive format.

This allows you to quickly and visually identify changes to your cloud network topology.

It also allows you to demonstrate the status of your network at any point in history. This can be invaluable during a pci compliance audit or insurance claim should your network design ever be called into question.

Exporting AWS Network Topology Diagrams

Native AWS architecture diagrams created by Hava are the nearest we’ve seen to the examples and recommendations provided by AWS. These are great to view and interrogate via the dashboard, however sometimes you’ll need to pull a set of diagrams for audit purposes or for management or sales presentations.

The built-in export function allows you to do this by providing these export options

CSV, VSDX, JSON, PDF and PNG

AWS Network Topology Diagram — Editing

Should you want to manipulate or embellish your auto generated diagrams, exporting to VSDX format and using Visio, draw.io or any VSDX compatible drawing package will allow you to edit your diagrams as required.

Should you not have access to Visio but would like to try this out, try opening one of your exported VSDX files in draw.io

Getting Hava to do the bulk of the heavy lifting by initially generating accurate diagrams based on what is actually configured and running in your AWS environment enables you to access a base diagram ready to edit which will save you hours or possibly days preparing management reports.

Conclusion.

There aren’t too many people that would dispute the benefits of perpetually accurate network documentation. Hava provides just this with:

  • Auto generation of documentation for your AWS environments (as well as GCP & Azure)
  • Keeps the diagram sets updated
  • Retains a full set of diagrams in version history every time a resource changes
  • Provides a comprehensive API to allow IaC build pipeline integration
  • Provides a unique security view detailing security groups with visualized traffic ingress/egress
  • Coming soon true 3d and separate compliance reporting
  • Available as SaaS or fully self-hosted

You can try Hava for free for 14 days here: https://www.hava.io/

Originally published at https://www.hava.io.

--

--

Alan Blackmore

AI Marketing Tech, Writer, Developer, Marketer and Generator of Leads. Writes for hava.io, carbsurvivor.com, theonlinegroup.com.au amongst others.