diff --git a/API.md b/API.md index 37c5dc7c..deda3d18 100644 --- a/API.md +++ b/API.md @@ -2376,7 +2376,7 @@ public readonly rawOutput: RawOutput; ``` - *Type:* RawOutput -- *Default:* undefined - no raw output +- *Default:* undefined - STRING for binary secrets, else no raw output Should the secret parsed and transformed to json? diff --git a/src/SopsSecret.ts b/src/SopsSecret.ts index a96b15d5..0c3bfcf5 100644 --- a/src/SopsSecret.ts +++ b/src/SopsSecret.ts @@ -104,7 +104,10 @@ export class SopsSecret extends Construct implements ISecret { region: this.stack.region, }; - let resourceType = props.sopsFileFormat == "binary" ? ResourceType.SECRET_RAW : ResourceType.SECRET; + let resourceType = + props.sopsFileFormat == 'binary' + ? ResourceType.SECRET_RAW + : ResourceType.SECRET; if (props.rawOutput === RawOutput.BINARY) { resourceType = ResourceType.SECRET_BINARY; }