class GeoEngineer::Resources::AwsElasticsearchDomain

AwsElasticsearchDomain is the aws_elasticsearch_domain terrform resource,

{www.terraform.io/docs/providers/aws/r/elasticsearch_domain.html Terraform Docs}

Public Class Methods

_fetch_remote_resources(provider) click to toggle source
# File lib/geoengineer/resources/aws_elasticsearch_domain.rb, line 29
def self._fetch_remote_resources(provider)
  AwsClients.elasticsearch(provider).list_domain_names['domain_names'].map(&:to_h).map do |esd|
    esd[:_geo_id] = esd[:domain_name]
    esd
  end
end

Public Instance Methods

short_type() click to toggle source
# File lib/geoengineer/resources/aws_elasticsearch_domain.rb, line 25
def short_type
  "es"
end
to_terraform_state() click to toggle source
# File lib/geoengineer/resources/aws_elasticsearch_domain.rb, line 16
def to_terraform_state
  tfstate = super
  tfstate[:primary][:attributes] = {
    'domain_name' => domain_name,
    'access_policies' => access_policies
  }
  tfstate
end