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
When managing an RDS DB Parameter Group with the rds_param_group module, the module will happily create a parameter group with the specified engine, but it will not fail / error when you pass it an engine that would require modification.
For instance... This will create a parameter group:
But running this afterwards and changing the engine to aurora-postgresql14 will pass "ok", leading you to believe that the engine type is already aurora-postgresql14. In reality though, this should probably fail, because I don't think you can modify the db parameter group family after creating a parameter group.
)
rds_param_group: WARN on updating DBParameterGroupFamily (engine)
SUMMARY
Fixes#1074
Added a check to WARN the task while modifying/updating rds_param_group if task tries to change DB parameter group family.
As AWS Documentation specifies that,
The DB parameter group family can't be changed when updating a DB parameter group.
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
rds_param_group
ADDITIONAL INFORMATION
Steps to reproduce
Create rds Param group
- name: Create a param group
hosts: localhost
gather_facts: false
tasks:
- name: create test rds db parameter group
amazon.aws.rds_param_group:
name: "test-parameter-group"
description: test rpg
state: present
engine: "aurora-postgresql13"
Try to change engine (family), with the fix in PR task should throw warning.
- name: Create a param group
hosts: localhost
gather_facts: false
tasks:
- name: create test rds db parameter group
amazon.aws.rds_param_group:
name: "test-parameter-group"
description: test rpg
state: present
engine: "aurora-postgresql14"
Reviewed-by: Jill R <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Summary
When managing an RDS DB Parameter Group with the rds_param_group module, the module will happily create a parameter group with the specified engine, but it will not fail / error when you pass it an engine that would require modification.
For instance... This will create a parameter group:
But running this afterwards and changing the
engine
toaurora-postgresql14
will pass "ok", leading you to believe that the engine type is alreadyaurora-postgresql14
. In reality though, this should probably fail, because I don't think you can modify the db parameter group family after creating a parameter group.Issue Type
Bug Report
Component Name
rds_param_group
Ansible Version
Collection Versions
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
5.15.0-1004-aws
Steps to Reproduce
Expected Results
I expected the step to fail.
Actual Results
"Seems good!"
Code of Conduct
The text was updated successfully, but these errors were encountered: