Skip to content

dsharkou/aws-parameter-store-powershell-helpers

Repository files navigation

aws-parameter-store-powershell-helpers

Powershell commands to improve maintainability AWS Parameter Store for A/B deployment (working with Powershell 3.0+)

Examples to use:

  1. To copy parameters (saving type String/SecureString) from one prefix to another prefix:
.\CopyParameters.ps1 -sourcePrefixPath /test-prefix-a/ -targetPrefixPath /test-prefix-b/
  1. To delete parameters by prefix:
.\DeleteParameters.ps1 -prefixPath /test-prefix/
  1. To export parameters by prefix (without prefix because it simplier to concatenate new prefix):
.\ExportParameters.ps1 -prefixPath /test-prefix-a/ -filePath C:\Temp\test.json
  1. To import parameters with target prefix (don't forget to export before):
.\ImportParameters.ps1 -prefixPath /test-prefix-b/ -filePath C:\Temp\test.json

Exported JSON example:

[
    {
        "PathWithoutPrefix":  "example/key1",
        "Type":  "String",
        "Value":  "value1"
    },
    {
        "PathWithoutPrefix":  "example/key2",
        "Type":  "SecureString",
        "Value":  "value2"
    }
]

About

Powershell commands to improve maintainability AWS Parameter Store for A/B deployment (working with Powershell 3.0+)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published