Module: Ufo::TaskDefinition::Helpers::Acm

Defined in:
lib/ufo/task_definition/helpers/acm.rb

Instance Method Summary collapse

Instance Method Details

#acm_cert(domain) ⇒ Object

returns cert arn



4
5
6
7
8
9
10
# File 'lib/ufo/task_definition/helpers/acm.rb', line 4

def acm_cert(domain)
  certs = acm_certs
  cert = certs.find do |c|
    c.domain_name == domain
  end
  cert.certificate_arn if cert
end

#acm_certsObject

TODO: handle when there are lots of certs by paging



13
14
15
16
# File 'lib/ufo/task_definition/helpers/acm.rb', line 13

def acm_certs
  resp = acm.list_certificates
  resp.certificate_summary_list
end