sparse-intern-71089
03/15/2022, 7:59 AMadorable-gpu-98268
03/15/2022, 8:10 AMadorable-gpu-98268
03/15/2022, 8:43 AMnew docker.Provider
and passing username
and password
explicitly. However: These are then plaintext in my pulumi state!
I don’t think this is an acceptable solution. Is there any way to have the credentials external to the pulumi state?witty-candle-66007
03/15/2022, 3:10 PMpulumi config set dockerUsername --secret
pulumi config set dockerPassword --secret
And then use those values in my program as such:
const config = new Config()
const dockerProvider = new docker.Provider("dockprovider", {
registryAuth: [{
address: "<https://index.docker.io/v1>",
password: config.requireSecret("dockerPassword"),
username: config.requireSecret("dockerUsername"),
}]
})
adorable-gpu-98268
03/15/2022, 3:13 PM