sparse-intern-71089
02/08/2021, 8:50 AMbillowy-army-68599
cold-motherboard-287
02/08/2021, 6:37 PMpulumi.Config
I was trying to use --config-file
of Pulumi with SOPS, but Pulumi won't read the file as the file has no extension.billowy-army-68599
sops -d > foo.yaml
and then do pulumi up --config-file foo.yaml
billowy-army-68599
cold-motherboard-287
02/09/2021, 11:14 AMsops -d
idea is good. I'll try that out... I initially wanted to do the "safer" usage of SOPS which only allows to read the secrets file and by using sops -d
I'll have a file in disk which can be read multiple times. But as the this will only exist temporarily inside of the pipeline, I think I don't need to be as concerned as I was when I'm using SOPS with applications.
Even then, it would be nice if, when the file has no extension, that pulumi attempts to parse the file as json
and as yaml
before failing.cold-motherboard-287
02/09/2021, 11:31 AMsops exec-file sops.yaml 'pulumi up --config-file {}'
my guess at the moment is that it's because the temp file generated by SOPS is not having an extension.cold-motherboard-287
02/10/2021, 2:34 PMfifo
generated by sops
at all. Now that https://github.com/mozilla/sops/pull/761 is merged, I was able to set the --filename
which gives me a filename like /tmp/.sops331513118/xpto.yaml.
. I expected pulumi to read it, but it hangs when I use the --config-file
flag.