Hi@akhtar,
You can update your distribution with the help of ID. You Ansible will connect to the distribution with the help of the ID. You can see the below example.
- cloudfront_distribution:
state: present
distribution_id: E1RP5A2MJ8073O
comment: modified by ansible cloudfront.py