Overview

How can I migrate to V2

SecretsManager#

  • Removed convertToJSON, flatten, stringifiedValues
  • Use rawOutput instead:
    • undefined / not set (default): convertToJSON and flatten and stringifiedValues = true
    • RawOutput.STRING: convertToJSON and flatten and stringifiedValues = false
    • RawOutput.BINARY: same as STRING, and the secret is binary

Parameter#

  • Removed convertToJSON, flatten, stringifiedValues — all of them made no sense here. Now the construct always outputs the raw decrypted secret.

MultiParameter#

  • Removed convertToJSON, flatten, stringifiedValues — most combinations made no sense
  • Always converts to JSON and flattens (required to create multiple parameters)
  • You can still choose the flattenSeparator

Questions after migrating? See the rest of the FAQ.