You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using community.aws.aws_acm_info module, it fails to list certificates from. any given region where you have certificates present with null domain name.
The ansible error trace is like this:
TASK [Fetch ACM info] **************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'DomainName'
fatal: [localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "<stdin>", line 107, in <module>
File "<stdin>", line 99, in _ansiballz_main
File "<stdin>", line 47, in invoke_module
File "<frozen runpy>", line 226, in run_module
File "<frozen runpy>", line 98, in _run_module_code
File "<frozen runpy>", line 88, in _run_code
File "/tmp/ansible_aws_acm_info_payload_dmognrki/ansible_aws_acm_info_payload.zip/ansible_collections/community/aws/plugins/modules/acm_certificate_info.py", line 304, in <module>
File "/tmp/ansible_aws_acm_info_payload_dmognrki/ansible_aws_acm_info_payload.zip/ansible_collections/community/aws/plugins/modules/acm_certificate_info.py", line 288, in main
File "/tmp/ansible_aws_acm_info_payload_dmognrki/ansible_aws_acm_info_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/acm.py", line 171, in get_certificates
KeyError: 'DomainName'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
PLAY RECAP *************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
It runs fine in case of any region where certificate without a domain name is not present.
Summary
When using
community.aws.aws_acm_info
module, it fails to list certificates from. any given region where you have certificates present with null domain name.The ansible error trace is like this:
It runs fine in case of any region where certificate without a domain name is not present.
Issue Type
Bug Report
Component Name
aws_acm_info
Ansible Version
Collection Versions
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Steps to Reproduce
Expected Results
Should return the acm info with this condition.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: