class GeoEngineer::Resources::AwsElasticacheSubnetGroup
AwsElasticacheSubnetGroup
is the aws_elasticache_subnet_group
terrform resource,
{www.terraform.io/docs/providers/aws/r/elasticache_subnet_group.html Terraform Docs}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_elasticache_subnet_group.rb, line 15 def self._fetch_remote_resources(provider) cache_subnet_groups = AwsClients.elasticache(provider).describe_cache_subnet_groups cache_subnet_groups['cache_subnet_groups'].map(&:to_h).map do |csg| csg[:name] = csg[:cache_subnet_group_name] csg[:_terraform_id] = csg[:cache_subnet_group_name] csg[:_geo_id] = csg[:cache_subnet_group_name] csg end end