Module: Awspec::Helper::Finder::Acm
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/acm.rb
Instance Method Summary collapse
Instance Method Details
#find_certificate(domain) ⇒ Object
4 5 6 7 |
# File 'lib/awspec/helper/finder/acm.rb', line 4 def find_certificate(domain) cert = acm_client.list_certificates.certificate_summary_list.find { |c| c[:domain_name] == domain } acm_client.describe_certificate({ certificate_arn: cert.certificate_arn }).certificate end |