Skip to content

Secrets manager JSON not accessible #5838

Closed

Description

@claygorman

The documentation does not show how to access secrets from aws secrets manager stored in JSON. Is there an ETA to add this ability? If you have many secrets its very cost prohibitive to have 1 secret to 1 plain text value.

Activity

  1. exoego commented on Feb 16, 2019

    @exoego
    Contributor

    @claygorman
    ${ssm} is a syntax to refer AWS Systems Manager Parameter Store.
    Parameter Store supports String, StringList and SecureString, but not JSON, if I understand correctly.

    Perhaps, do you want to refer AWS Systems Manager Documents, which is in the form of JSON or YAML, like below ?

    {
      "schemaVersion" : "2.2",
      "description" : "Command Document Example JSON Template",
      "parameters" : {
        "Message" : {
          "type" : "String",
          "description" : "Example",
          "default" : "Hello World"
        }
      },
      "mainSteps" : [ {
        "action" : "aws:runPowerShellScript",
        "name" : "example",
        "inputs" : {
          "runCommand" : [ "Write-Output {{Message}}" ]
        }
      } ]
    }
  2. claygorman commented on Feb 17, 2019

    @claygorman
    Author

    @exoego I am referring to the aws secrets manager reference for the ${ssm}

    https://serverless.com/framework/docs/providers/aws/guide/variables#reference-variables-using-aws-secrets-manager

    This works fine when the secret is plain text but the default in aws console for secrets manager is JSON string (key/value). When using the default key/value for storing many secrets at once I am unable to decode it.

    Here is a similar concern in another thread #5024 (comment)

  3. exoego commented on Feb 17, 2019

    @exoego
    Contributor

    Opened a PR #5842.

  4. claygorman commented on Feb 17, 2019

    @claygorman
    Author

    Wow thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions