Search code examples
amazon-web-servicespowershellaws-parameter-store

Create AWS Parameter Store key/value pair with powershell


Is there a way to create a new secure Key/Value pair on AWS Parameter store with Powershell ? Is the only workaround to use AWSCLI ?


Solution

  • From Create a Systems Manager parameter (Tools for Windows PowerShell) - AWS Systems Manager:

    Write-SSMParameter `
        -Name "parameter-name" `
        -Value "parameter-value" `
        -Type "SecureString"  `
        -KeyId "a KMS CMK ID, a KMS CMK ARN, an alias name, or an alias ARN"
    

    See also: AWS Systems Manager Parameter Store using Powershell