route53: Skip zone listing when hosted_zone_id is set #60102
Labels
affects_2.8
This issue/PR affects Ansible v2.8
aws
bug
This issue/PR relates to a bug.
cloud
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
performance
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
Improve route53 module performance when ZoneID is know
ISSUE TYPE
COMPONENT NAME
route53
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
loop
withroute53
module to update themEXPECTED RESULTS
Since hosted_zone_id is provided, this should be a simple request to Route53 API
ACTUAL RESULTS
Currently the code in route53.py do a zone lookup witch may lead to a full listing with (possibly) pagination by boto.
This lookup returns a
zone
reference but only it'sid
attribute is read.So, since the hosted_zone_id is the same id obtained above, and is developer responsibility to ensure it's correct, this lookup should be ignored and the provided hosted_zone_id used in place.
The text was updated successfully, but these errors were encountered: