few-toddler-19603
06/28/2022, 8:29 PMwitty-candle-66007
06/28/2022, 8:47 PMpulumi.run
To execute a Pulumi program, you use pulumi up
where pulumi
is the Pulumi CLI.
So, confirming a few things:
• you have the Pulumi CLI installed as per:
https://www.pulumi.com/docs/get-started/install/
• You have a pulumi program written in go - something along the lines of the go example here: https://www.pulumi.com/registry/packages/equinix-metal/
• You have your Pulumi project/stack set up with the necessary Equinix credentials as per: https://www.pulumi.com/registry/packages/equinix-metal/installation-configuration/
• You’ve initialized the stack as per https://www.pulumi.com/docs/intro/concepts/stack/
If so, what output do you get from pulumi up
?few-toddler-19603
06/28/2022, 8:47 PMwitty-candle-66007
06/28/2022, 8:51 PMfew-toddler-19603
06/28/2022, 8:52 PMpulumi new
to run, as it kept asking me to run it in an empty directorywitty-candle-66007
06/28/2022, 8:53 PMpulumi new
at this point.
You would do a pulumi stack init
as per the link provided above.few-toddler-19603
06/28/2022, 8:54 PM┌──(gido5731㉿gtux0)-[~/AutoDeployVM/masterapi]
└─$ pulumi stack init masterapi 255 ⨯
Created stack 'masterapi'
error: no Pulumi project found in the current working directory. Move to a directory with a Pulumi project or try creating a project first with `pulumi new`.
┌──(gido5731㉿gtux0)-[~/AutoDeployVM/masterapi]
└─$ pulumi stack init 255 ⨯
stack name: (dev) masterapi
error: stack 'masterapi' already exists
witty-candle-66007
06/28/2022, 8:57 PMfew-toddler-19603
06/28/2022, 8:58 PMwitty-candle-66007
06/28/2022, 9:01 PMPulumi.yaml
(project file) and (possibly) a Pulumi.XXX.yaml
(stack file for stack named XXX) then pulumi up
should work.few-toddler-19603
06/28/2022, 9:03 PMwitty-candle-66007
06/28/2022, 9:10 PMfew-toddler-19603
06/28/2022, 9:11 PMwitty-candle-66007
06/28/2022, 9:11 PMpulumi login
to something though whether it’s the SaaS or an S3 bucket of file since Pulumi needs that for state management.few-toddler-19603
06/28/2022, 9:13 PMwitty-candle-66007
06/28/2022, 9:13 PMpulumi login
to something.few-toddler-19603
06/28/2022, 9:14 PMwitty-candle-66007
06/28/2022, 9:15 PM