File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -399,16 +399,19 @@ vpc-default-delete() {
399399 fi
400400}
401401
402+
402403subnet-ips () {
403404 # List IP addresses for a subnet along with the resources they are allocated to
404405 #
405406 # USAGE: subnet-ips subnet-id [subnet-id...]
406407 #
407408 # EXAMPLE:
408409 # $ subnet-ips subnet-12345678
409- # 10.0.1.10 i-abcdef1234567890 EC2 Instance
410+ # 10.0.1.10 i-abcdef1234567890 EC2 Instance
410411 # 10.0.1.20 eni-1234567890abcdef Network Interface
411- # 10.0.1.30 rds:my-database RDS Instance
412+ # 10.0.1.30 rds:my-database RDS Instance
413+ #
414+ # XXX Tidy up to follow function formatting conventions.
412415
413416 local subnet_ids=$( skim-stdin " $@ " )
414417 [[ -z " $subnet_ids " ]] && __bma_usage " subnet-id [subnet-id...]" && return 1
@@ -432,6 +435,5 @@ subnet-ips() {
432435 --query " DBInstances[?DBSubnetGroup.Subnets[?SubnetIdentifier=='$subnet_id ']].[Endpoint.Address,DBInstanceIdentifier,'RDS Instance']" \
433436 --output text
434437
435- # Add more resource types here as needed
436438 done | sort -V | columnise
437439}
You can’t perform that action at this time.
0 commit comments