Reputation: 597
Consider that I have got a AWS account that already has some parameter store data.
Is there a way to migrate these data from this parameter store to another:
I would prefer official tools to do this, but tools similar to dynamoDB dump are also welcome.
Upvotes: 3
Views: 7173
Reputation: 71
This article might help
For another account, you need to export parameters from account by using command
aws ssm get-parameters-by-path --path "/" --recursive
and you will get all the parameters as response.
Now you have to login to another account using command aws configure
. just replace following values
$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
reference here
and then follow the article I shared above.
Upvotes: 2
Reputation: 269826
There is no "official tool" to do this. It could be done by iterating through the existing parameters and creating them in the target.
I found this tool that somebody has written: aws-ssm-copy · PyPI: Copy parameters from a AWS parameter store to another
It looks like it can copy between Regions and between AWS Accounts (by providing multiple Profiles).
Upvotes: 5