diff --git a/changelogs/fragments/53409-rds_instance-remove-hardcoded-license-models.yaml b/changelogs/fragments/53409-rds_instance-remove-hardcoded-license-models.yaml new file mode 100644 index 00000000000..9f87f782ad4 --- /dev/null +++ b/changelogs/fragments/53409-rds_instance-remove-hardcoded-license-models.yaml @@ -0,0 +1,3 @@ +bugfixes: + - rds_instance - Don't hardcode the license models because there are accepted values undocumented by AWS. + Rely on the exception handling instead to provide a helpful error for invalid license models. diff --git a/lib/ansible/modules/cloud/amazon/rds_instance.py b/lib/ansible/modules/cloud/amazon/rds_instance.py index 3c8b4401d89..b598a8c1556 100644 --- a/lib/ansible/modules/cloud/amazon/rds_instance.py +++ b/lib/ansible/modules/cloud/amazon/rds_instance.py @@ -224,10 +224,8 @@ options: license_model: description: - The license model for the DB instance. - choices: - - license-included - - bring-your-own-license - - general-public-license + - Several options are license-included, bring-your-own-license, and general-public-license. + - This option can also be omitted to default to an accepted value. type: str master_user_password: description: @@ -1090,7 +1088,7 @@ def main(): force_failover=dict(type='bool'), iops=dict(type='int'), kms_key_id=dict(), - license_model=dict(choices=['license-included', 'bring-your-own-license', 'general-public-license']), + license_model=dict(), master_user_password=dict(aliases=['password'], no_log=True), master_username=dict(aliases=['username']), monitoring_interval=dict(type='int'),