From 4273367f24e2e65eed6463d236d99ab3277c7f6c Mon Sep 17 00:00:00 2001 From: Markus Siebert Date: Mon, 15 Jul 2024 13:34:33 +0200 Subject: [PATCH] fix: don't add EncryptionKey for Sops if target is SecretsManager (#1044) * fix: don't add EncryptionKey for Sops if target is SecretsManager * chore: update snapshots * chore: self mutation Signed-off-by: github-actions --------- Signed-off-by: github-actions Co-authored-by: github-actions --- .tool-versions | 4 +++- src/SopsSync.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.tool-versions b/.tool-versions index fd9b0be7..4c23a48c 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,3 @@ -golang 1.22.3 \ No newline at end of file +golang 1.22.3 +yarn 1.22.19 +nodejs 20.12.2 \ No newline at end of file diff --git a/src/SopsSync.ts b/src/SopsSync.ts index f5ff0831..5ede7b49 100644 --- a/src/SopsSync.ts +++ b/src/SopsSync.ts @@ -365,7 +365,8 @@ export class SopsSync extends Construct { Format: sopsFileFormat, StringifiedValues: this.stringifiedValues, ParameterName: props.parameterName, - EncryptionKey: props.encryptionKey?.keyId, + EncryptionKey: + props.secret !== undefined ? undefined : props.encryptionKey?.keyId, }, }); this.versionId = cr.getAttString('VersionId');