enough-caravan-98871
02/08/2023, 2:29 PMconst certState = new terraform.state.RemoteStateReference("certs", {
backendType: "remote",
token: tfeToken,
organization: org,
workspaces: {
name: "acme-tf"
},
});
const certificate = new azure.keyvault.Certificate("cert-name", {
keyVaultId: vaultId,
certificate: {
contents: certState.getOutput("certificate_p12"),
password: certState.getOutput("certificate_p12_password"),
},
name: "cert-name"
});
echoing-dinner-19531
02/08/2023, 3:30 PMenough-caravan-98871
02/08/2023, 4:03 PMcertState.getOutput("certificate_p12") as pulumi.Output<Secret>
That does not work... Type 'Output<Secret>' is not assignable to type 'Input<string>'.echoing-dinner-19531
02/08/2023, 4:04 PMpulumi.secret(certState.getOutput("certificate_p12"))
enough-caravan-98871
02/08/2023, 4:14 PMechoing-dinner-19531
02/08/2023, 4:15 PMenough-caravan-98871
02/08/2023, 9:05 PMadditionalSecretOutputs: ["outputs"]
to the first block resolved it there too.