https://pulumi.com logo
#getting-started
Title
# getting-started
d

damp-hospital-32757

01/27/2022, 10:05 PM
Hello i am having trouble with config secrets. I configured a secret with a key and im trying to use the value in my code. I looked at the doc and to use pulumi.Config().require_secret(<key>) and i made sure the key and value are there with the cli with pulumi config get command but when i run my code i get and error that the program run without the pulumi engine available
e

echoing-dinner-19531

01/27/2022, 10:08 PM
You need to run your program with
pulumi up
. The engine starts the program, not the other way round.
d

damp-hospital-32757

01/27/2022, 10:34 PM
im sorry im new to this, im not sure what you mean by running it with pulumi up because when i tried to before nothing responded
e

echoing-dinner-19531

01/27/2022, 10:35 PM
Do you have the
pulumi
program installed? Can you run
pulumi version
from your command line?
d

damp-hospital-32757

01/27/2022, 10:36 PM
v3.23.0
e

echoing-dinner-19531

01/27/2022, 10:37 PM
Ok so in your directory with the pulumi program you should have a Pulumi.yaml file that looks something like:
Copy code
name: aws-cs-eks
runtime: dotnet
description: An <http://ASP.NET|ASP.NET> application running a simple container in a EKS Cluster
(Thats just a random one I grabbed from our examples)
d

damp-hospital-32757

01/27/2022, 10:37 PM
yes i noticed that
e

echoing-dinner-19531

01/27/2022, 10:39 PM
so then running
pulumi up
in that directory should invoke the pulumi engine to run your program and should give you some sort of output even if its just that there's nothing to do.
3 Views