class GeoEngineer::Resources::AwsVpcDhcpOptions
AwsVpcDhcpOptions
is the aws_vpc_dhcp_options
terrform resource,
{www.terraform.io/docs/providers/aws/r/vpc_dhcp_options.html Terraform Docs}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_vpc_dhcp_options.rb, line 19 def self._fetch_remote_resources(provider) AwsClients.ec2(provider).describe_dhcp_options['dhcp_options'].map(&:to_h).map do |options| options.merge( { _terraform_id: options[:dhcp_options_id], _geo_id: options[:tags]&.find { |tag| tag[:key] == "Name" }&.dig(:value) } ) end end