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
After upgrading community.aws to 1.4.0route53 module alias requests are rejected by AWS API with message:
Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found more than one in Change with [Action=UPSERT, Name=myapp.mydomain.com., Type=A, SetIdentifier=null]
- name: Create public name entry in private zoneroute53:
alias: Truealias_hosted_zone_id: "{{ alb_info.load_balancers.0.canonical_hosted_zone_id }}"record: "mytestapp.mydomain.com"type: Avalue: "{{ alb_info.load_balancers.0.dns_name }}"zone: mydomain.comprivate_zone: Trueoverwrite: Truestate: present
EXPECTED RESULTS
Module creates or updates existing entry in Route53.
ACTUAL RESULTS
Module fails and informs about reason of rejected request
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_route53_payload_ukn0ppc0/ansible_route53_payload.zip/ansible_collections/community/aws/plugins/modules/route53.py", line 585, in main
File "/tmp/ansible_route53_payload_ukn0ppc0/ansible_route53_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/core.py", line 287, in deciding_wrapper
return retrying_wrapper(*args, **kwargs)
File "/tmp/ansible_route53_payload_ukn0ppc0/ansible_route53_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/cloud.py", line 153, in retry_func
raise e
File "/tmp/ansible_route53_payload_ukn0ppc0/ansible_route53_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/cloud.py", line 143, in retry_func
return f(*args, **kwargs)
File "/home/sz/venvs/ansible/lib/python3.8/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/sz/venvs/ansible/lib/python3.8/site-packages/botocore/client.py", line 676, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidInput: An error occurred (InvalidInput) when calling the ChangeResourceRecordSets operation: Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found more than one in Chan
ge with [Action=UPSERT, Name=mytestapp.mydomain.com., Type=A, SetIdentifier=null]
fatal: [localhost]: FAILED! => {
"boto3_version": "1.17.12",
"botocore_version": "1.20.12",
"changed": false,
"error": {
"code": "InvalidInput",
"message": "Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found more than one in Change with [Action=UPSERT, Name=mytestapp.mydomain.com., Type=A, SetIdentifier=null]",
"type": "Sender"
},
"invocation": {
"module_args": {
"alias": true,
"alias_evaluate_target_health": false,
"alias_hosted_zone_id": "Z215JAAAAAABB5",
"aws_access_key": "ASIAUAEWE6L3BFMNOOVC",
"aws_ca_bundle": null,
"aws_config": null,
"aws_secret_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"debug_botocore_endpoint_logs": false,
"ec2_url": null,
"failover": null,
"health_check": null,
"hosted_zone_id": null,
"identifier": null,
"overwrite": true,
"private_zone": true,
"profile": null,
"record": "mytestapp.mydomain.com",
"region": null,
"retry_interval": 500,
"security_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"state": "present",
"ttl": 3600,
"type": "A",
"validate_certs": true,
"value": [
"myelbzone.eu-central-1.elb.amazonaws.com"
],
"vpc_id": null,
"wait": false,
"wait_timeout": 300,
"weight": null,
"zone": "mydomai.com"
}
},
"msg": "Failed to update records: An error occurred (InvalidInput) when calling the ChangeResourceRecordSets operation: Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found more than one in Ch
ange with [Action=UPSERT, Name=mytestapp.mydomain.com., Type=A, SetIdentifier=null]",
"response_metadata": {
"http_headers": {
"connection": "close",
"content-length": "488",
"content-type": "text/xml",
"date": "Sun, 21 Feb 2021 20:04:13 GMT",
"x-amzn-requestid": "abcdef12-abcd-ef12-cdef-abcdef102345"
},
"http_status_code": 400,
"request_id": "abcdef12-abcd-ef12-cdef-abcdef102345",
"retry_attempts": 0
}
}
aws.community==1.3.0 is not affected. Downgrade works as a temporary workaround.
The text was updated successfully, but these errors were encountered:
SUMMARY
After upgrading
community.aws
to1.4.0
route53
module alias requests are rejected by AWS API with message:ISSUE TYPE
COMPONENT NAME
route53
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A, tested on various operating systems
STEPS TO REPRODUCE
Try to create or update an alias in Route53
EXPECTED RESULTS
Module creates or updates existing entry in Route53.
ACTUAL RESULTS
Module fails and informs about reason of rejected request
aws.community==1.3.0
is not affected. Downgrade works as a temporary workaround.The text was updated successfully, but these errors were encountered: