Sha256: 82a5ffd841b4f5224619d240bd76e751795fc395774824d2a804c2b1f42039a5

Contents?: true

Size: 403 Bytes

Versions: 9

Compression:

Stored size: 403 Bytes

Contents

module Ufo::TaskDefinition::Helpers
  module Acm
    # returns cert arn
    def acm_cert(domain)
      certs = acm_certs
      cert = certs.find do |c|
        c.domain_name == domain
      end
      cert.certificate_arn if cert
    end

    # TODO: handle when there are lots of certs by paging
    def acm_certs
      resp = acm.list_certificates
      resp.certificate_summary_list
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ufo-6.1.1 lib/ufo/task_definition/helpers/acm.rb
ufo-6.1.0 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.9 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.8 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.7 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.6 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.5 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.4 lib/ufo/task_definition/helpers/acm.rb
ufo-6.0.3 lib/ufo/task_definition/helpers/acm.rb