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
route53 has a special behaviour when working on private zones and vpc_id option is provided. As stated in documentation:
When used in conjunction with private_zone: true, this will only modify records in the private hosted zone attached to this VPC.
This allows you to have multiple private hosted zones, all with the same name, attached to different VPCs.
The following error occurs when creating or updating a record in such zone: AttributeError: 'dict' object has no attribute 'id'.
In case anyone wonders, this is not a duplicate of #434 because no vpc_id option is used there.
The full traceback is:
Traceback (most recent call last):
File "/home/admin/.ansible/tmp/ansible-tmp-1617023331.5792427-11521-49668929273150/AnsiballZ_route53.py", line 102, in <module>
_ansiballz_main()
File "/home/admin/.ansible/tmp/ansible-tmp-1617023331.5792427-11521-49668929273150/AnsiballZ_route53.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/admin/.ansible/tmp/ansible-tmp-1617023331.5792427-11521-49668929273150/AnsiballZ_route53.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.aws.plugins.modules.route53', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib/python3.7/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_route53_payload_n6znsp0f/ansible_route53_payload.zip/ansible_collections/community/aws/plugins/modules/route53.py", line 626, in <module>
File "/tmp/ansible_route53_payload_n6znsp0f/ansible_route53_payload.zip/ansible_collections/community/aws/plugins/modules/route53.py", line 529, in main
File "/tmp/ansible_route53_payload_n6znsp0f/ansible_route53_payload.zip/ansible_collections/community/aws/plugins/modules/route53.py", line 413, in get_zone_id_by_name
AttributeError: 'dict' object has no attribute 'id'
The text was updated successfully, but these errors were encountered:
ec2_vol: Add check_mode support to ec2_vol
SUMMARY
Add check_mode support to ec2_vol.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
ec2_vol
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: None <None>
SUMMARY
route53
has a special behaviour when working on private zones andvpc_id
option is provided. As stated in documentation:The following error occurs when creating or updating a record in such zone:
AttributeError: 'dict' object has no attribute 'id'
.In case anyone wonders, this is not a duplicate of #434 because no
vpc_id
option is used there.I'll provide a PR soon.
ISSUE TYPE
COMPONENT NAME
route53
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 10
STEPS TO REPRODUCE
Ensure a private zone exists, then run the following task.
EXPECTED RESULTS
The record is created inside the zone.
ACTUAL RESULTS
An error occured.
The text was updated successfully, but these errors were encountered: