Skip to content

Commit

Permalink
add skeleton implementation of request certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-rosset committed Jan 18, 2022
1 parent ba5af80 commit 4eb1996
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/modules/aws_acm.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,12 @@ def main():

module.debug("Found %d corresponding certificates in ACM" % len(certificates))
if module.params['state'] == 'present':
ensure_certificates_present(client, module, acm, certificates, desired_tags, filter_tags)
if module.params.get('certificate_request') is not None:
# Request certificate from ACM.
request_certificate(client, module, acm, desired_tags)
else:
# Import certificate to ACM.
ensure_certificates_present(client, module, acm, certificates, desired_tags, filter_tags)

else: # state == absent
ensure_certificates_absent(client, module, acm, certificates)
Expand Down

0 comments on commit 4eb1996

Please sign in to comment.