turbot/steampipe-mod-alicloud-insights

Dashboard: AliCloud VPC Detail

This dashboard answers the following questions for each VPC:

  • How is the VPC configured?
  • What relationships does the VPC have with other resources?
  • What tags are applied?
  • What are the CIDR blocks assigned to?
  • What is the DHCP option configured?
  • What are the vswitches attached to?
  • How the route tables are configured?
  • How are NACLs configured?
  • How gateways and security groups are configured?
This dashboard contains 4 cards, 2 flows, 1 graph, 1 input and 9 tables.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-alicloud-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select AliCloud VPC Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run alicloud_insights.dashboard.vpc_detail --share

Queries

This dashboard uses the the following queries:
select
cidr_block as "CIDR Block",
power(2, 32 - masklen(cidr_block)) as "Total IPs"
from
alicloud_vpc
where
vpc_id = $1
union all
select
b::cidr as "CIDR Block",
power(2, 32 - masklen(b:: cidr)) as "Total IPs"
from
alicloud_vpc,
jsonb_array_elements_text(secondary_cidr_blocks) as b
where
vpc_id = $1
union all
select
(b ->> 'Ipv6CidrBlock'):: cidr as "CIDR Block",
power(2, 128 - masklen((b ->> 'Ipv6CidrBlock'):: cidr)) as "Total IPs"
from
alicloud_vpc,
jsonb_array_elements(ipv6_cidr_blocks) as b
where
vpc_id = $1;

Tags