class GeoEngineer::Resources::AwsVpcPeeringConnection
AwsVpcPeeringConnection
is the aws_vpc_peering_connection
terrform resource,
{www.terraform.io/docs/providers/aws/r/vpc_peering.html Terraform Docs}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_vpc_peering_connection.rb, line 13 def self._fetch_remote_resources(provider) AwsClients .ec2(provider) .describe_vpc_peering_connections['vpc_peering_connections'] .map(&:to_h) .map { |connection| _merge_ids(connection) } end
_merge_ids(connection)
click to toggle source
# File lib/geoengineer/resources/aws_vpc_peering_connection.rb, line 21 def self._merge_ids(connection) connection.merge( { _terraform_id: connection[:vpc_peering_connection_id], _geo_id: connection[:tags]&.find { |tag| tag[:key] == "Name" }&.dig(:value) } ) end