dazzling-memory-8548
06/14/2019, 5:36 PMimport * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
const config = new pulumi.Config("secrets-demo");
const containerImage = config.requireSecret("containerImage");
// This exposes the secret in the stack export.
export const remoteImage = new docker.RemoteImage("myImage", {
name: containerImage
});
const container = new docker.Container(
"myContainer",
{
image: containerImage
},
{
dependsOn: remoteImage
}
);
// This correctly encrypts the secret.
export const imageName = remoteImage.name;
ubuntu:latest
):
"resources": [
{
"urn": "urn:pulumi:secrets-demo::secrets-demo::pulumi:pulumi:Stack::secrets-demo-secrets-demo",
"custom": false,
"type": "pulumi:pulumi:Stack",
"outputs": {
"imageName": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"ciphertext": "v1:+h6rqYSR0aiRoY1O:1UHiOwS37dSnyl8uKbzkICop1GwauKMSZ+fKxCxXNw=="
},
"remoteImage": {
"id": "sha256:7698f282e5242af2b9d2291458d4e425c75b25b0008c1e058d66b717b4c06fa9ubuntu:latest"
,
"latest": "sha256:7698f282e5242af2b9d2291458d4e425c75b25b0008c1e058d66b717b4c06fa9",
"name": "ubuntu:latest",
"urn": "urn:pulumi:secrets-demo::secrets-demo::docker:index/remoteImage:RemoteImage::myImage
"
}
}
},
worried-engineer-33884
06/17/2019, 11:57 AMgentle-diamond-70147
06/17/2019, 2:45 PMdazzling-memory-8548
06/17/2019, 7:01 PMworried-engineer-33884
06/24/2019, 3:15 PMgentle-diamond-70147
06/24/2019, 3:22 PMworried-engineer-33884
06/24/2019, 3:23 PMdazzling-memory-8548
06/24/2019, 3:51 PMbitter-oil-46081
06/26/2019, 10:25 PM@pulumi/pulumi
packages out there, you shouldn't need to update the CLI to get a fix.