amazon-web-services - 如何从AWS参数存储中导出参数并导入到另一个帐户

标签 amazon-web-services ssm amazon-systems-manager aws-parameter-store

在我的第一个 aws帐户上,我以以下方式指定了参数:

/config/a => value1
/config/b => value2
/config/c/a => value31
/config/c/b => value32

我想将它们移到我的第二个 aws帐户。

我在参数存储中手动创建了这些参数。

我如何轻松地将这些值从一个帐户复制到另一个帐户?

使用aws ssm get-parameters --names "<param-name>"会有点困难,因为我有太多的参数。

最佳答案

我创建了一个实用工具,它可以完全满足您的需求:

pip install aws-ssm-copy
aws-ssm-copy --dry-run --source-profile <source> --recursive /
check out aws-ssm-copy实用程序和blog了解更多详细信息。

关于amazon-web-services - 如何从AWS参数存储中导出参数并导入到另一个帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54787151/

相关文章:

html - AWS SSM 参数存储 : How can I edit multi-line "SecureString" values using the console?

amazon-web-services - 使用 AWS SSM 服务在启动时更新 Raspberry Pi

amazon-web-services - 我们如何使用 boto3 查询 dynamodb 的二级索引?

java - 如何使用 EasyMock 模拟 DynamoDB 的 ItemCollection<QueryResult>?

amazon-web-services - 将 SSM 参数安全地传递给 CodeBuild 项目

c# - 使用 AWS Systems Manager Parameter Store 构建 ASP.NET Core 2.2 Docker 镜像

amazon-web-services - 如何在 CloudFormation 中使用预定义的 SSM Windows 补丁基准

json - 将 CLI 代码转换为 CloudFormation JSON 格式

amazon-web-services - 作为源的数据目录表

node.js - 批量检索 AWS ssm 参数