- May 11, 2022
- Posted by: Syed Shujaat
- Category: Uncategorized
Here is the python script:https://cforia.visualstudio.com/_git/IAAC?path=/local/copy_db_params.py. This script is a wrapper script to the CLI that helped us migrate the parameter groups between the accounts.
####################################################################################
# This file is for migrating RDS Parameter Group from one AWS account to another
# Parameters:
# <profile1> – local SSO profile name of AWS account 1. This is the account with the existing RDS parameter group.
# <profile2> – local SSO profile name of AWS account 2. This is the account to which the parameter group would be migrated.
# <parameter_name> – name of the parameter group that needs to be migrated
# <parameter_family> – family of the parameter group that needs to be migrated
# NOTE: For setting up local SSO profiles, refer – https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
# Run this file as:
# $ python copy_db_params.py <profile1> <profile2> <parameter_name> <parameter_family>
####################################################################################