diff --git a/changelogs/fragments/47500-rds_instance.yaml b/changelogs/fragments/47500-rds_instance.yaml new file mode 100644 index 0000000000..052bf9c084 --- /dev/null +++ b/changelogs/fragments/47500-rds_instance.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: +- rds_instance - Cluster_id which is an alias of db_cluster_identifier is a mandatory check target. diff --git a/lib/ansible/modules/cloud/amazon/rds_instance.py b/lib/ansible/modules/cloud/amazon/rds_instance.py index 834b8521f6..fee883ee73 100644 --- a/lib/ansible/modules/cloud/amazon/rds_instance.py +++ b/lib/ansible/modules/cloud/amazon/rds_instance.py @@ -1076,9 +1076,9 @@ def main(): arg_spec.update(parameter_options) required_if = [ - ('engine', 'aurora', ('cluster_id',)), - ('engine', 'aurora-mysql', ('cluster_id',)), - ('engine', 'aurora-postresql', ('cluster_id',)), + ('engine', 'aurora', ('db_cluster_identifier',)), + ('engine', 'aurora-mysql', ('db_cluster_identifier',)), + ('engine', 'aurora-postresql', ('db_cluster_identifier',)), ('creation_source', 'snapshot', ('snapshot_identifier', 'engine')), ('creation_source', 's3', ( 's3_bucket_name', 'engine', 'master_username', 'master_user_password',