Open
Description
I'm still having issues with the new plaintext secrets.
I create a SOPS file using
sops edit --input-type binary sops_test.yaml
and enter the string abc
(without any JSON/YAML structure). Now a
sops decrypt --output-type binary sops_test.yaml
correctly returns abc
.
However, trying to deploy the secret fails with the error message
CREATE_FAILED | Custom::SopsSync | Secret/SopsSync/Resource/Default (SecretSopsSyncCA4EC563) Invalid PhysicalResourceId
❌ SopsTestStack failed: _ToolkitError: The stack named SopsTestStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Invalid PhysicalResourceId
Here is my CDK code:
const encryptionKey = new kms.Key(this, "EncryptionKey", {
alias: "sops-test",
});
const sopsProvider = new SopsSyncProvider(this, "SopsSyncProvider", {
vpc,
vpcSubnets: subnetSelection,
securityGroups: [securityGroup],
});
const secret = new SopsSecret(this, "Secret", {
secretName: "sops-test",
sopsFilePath: "sops_test.yaml",
description: "This is a test",
sopsProvider: sopsProvider,
rawOutput: RawOutput.STRING,
sopsFileFormat: "binary",
encryptionKey,
});
I use version 2.0.3.