turbot/alicloud

steampipe plugin install alicloudsteampipe plugin install alicloud

Table: alicloud_vpc_vpn_connection

An IPsec-VPN connection provides support to establish an encrypted communication tunnel between a VPN Gateway and a customer gateway.

Examples

Basic info

select
name,
vpn_connection_id,
status,
local_subnet,
remote_subnet,
vpn_gateway_id
from
alicloud_vpc_vpn_connection;

Get the vpn connections which are not healthy

select
name,
vpn_connection_id,
vco_health_check ->> 'Status' as health_check_status,
status
from
alicloud_vpc_vpn_connection
where vco_health_check ->> 'Status' = 'failed';

Get the BGP configuration information of vpn connections

select
name,
vpn_connection_id,
vpn_bgp_config ->> 'EnableBgp' as enable_bgp,
vpn_bgp_config ->> 'LocalAsn' as local_asn,
vpn_bgp_config ->> 'LocalBgpIp' as local_bgp_ip,
vpn_bgp_config ->> 'PeerAsn' as peer_asn,
vpn_bgp_config ->> 'PeerBgpIp' as peer_bgp_ip,
vpn_bgp_config ->> 'Status' as status,
vpn_bgp_config ->> 'TunnelCidr' as tunnel_cidr
from
alicloud_vpc_vpn_connection;

Get the vpn connections where NAT traversal feature is enabled

select
name,
vpn_connection_id,
enable_nat_traversal
from
alicloud_vpc_vpn_connection
where enable_nat_traversal;

.inspect alicloud_vpc_vpn_connection

VPN Connection is an Internet-based tunnel between VPN Gateway and User Gateway.

NameTypeDescription
account_idtextThe Alicloud Account ID in which the resource is located.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
create_timetimestamp without time zoneThe time when the IPsec-VPN connection was created.
customer_gateway_idtextThe ID of the customer gateway.
effect_immediatelybooleanIndicates whether IPsec-VPN negotiations are initiated immediately.
enable_dpdbooleanIndicates whether dead peer detection (DPD) is enabled.
enable_nat_traversalbooleanIndicates whether to enable the NAT traversal feature.
ike_configjsonbThe configurations of Phase 1 negotiations.
ipsec_configjsonbThe configurations for Phase 2 negotiations.
local_subnetcidrThe CIDR block of the virtual private cloud (VPC).
nametextThe name of the IPsec-VPN connection.
regiontextThe Alicloud region in which the resource is located.
remote_subnetcidrThe CIDR block of the on-premises data center.
statustextThe status of the IPsec-VPN connection.
titletextTitle of the resource.
vco_health_checkjsonbThe health check configurations.
vpn_bgp_configjsonbBGP configuration information.
vpn_connection_idtextThe ID of the IPsec-VPN connection.
vpn_gateway_idtextThe ID of the VPN gateway.