broad-raincoat-27115
05/19/2022, 9:59 AMorange-policeman-59119
05/20/2022, 10:01 PMbroad-raincoat-27115
05/23/2022, 7:40 PMorange-policeman-59119
05/23/2022, 7:41 PMbroad-raincoat-27115
05/23/2022, 7:43 PMorange-policeman-59119
05/23/2022, 7:47 PMbroad-raincoat-27115
05/23/2022, 7:50 PMorange-policeman-59119
05/23/2022, 7:53 PMpulumi up --verbose=3
?broad-raincoat-27115
05/23/2022, 7:55 PMorange-policeman-59119
05/23/2022, 7:59 PMbroad-raincoat-27115
05/23/2022, 7:59 PMorange-policeman-59119
05/23/2022, 8:00 PMbroad-raincoat-27115
05/23/2022, 8:00 PMorange-policeman-59119
05/23/2022, 8:00 PMbroad-raincoat-27115
05/23/2022, 8:02 PMorange-policeman-59119
05/23/2022, 8:02 PMif I try git bash, pulumi thinks I am in non-interactive mode. Errors: None syntactically. Its just when I try and run the pulumi up command, it finishes in 1 second and there is no vm deployed.Are you running Pulumi against a YAML program or other Pulumi language program that is in a directory?
pulumi up
in a directory, I expect there to be a Pulumi.yaml file in that directory, and if I'm using TypeScript/Java/etc, there will be source code in that directory.broad-raincoat-27115
05/23/2022, 8:03 PMorange-policeman-59119
05/23/2022, 8:11 PMbroad-raincoat-27115
05/23/2022, 8:13 PMorange-policeman-59119
05/23/2022, 8:20 PMname: skeleton-openstack
type: pulumi:providers:openstack
runtime: yaml
resources:
# Pulumi resources are declared under the
# "resources" key of the document
# each resource has a name:
myComputeInstance:
# This is the level where you'd set type, properties, ...
type: openstack:compute:Instance
properties:
accessIPv4: true
availabilityZone: nova
flavorName: m2.micro
sourceType: Image
imageName: centos-8.2-2004
name: made_by_pulumi
broad-raincoat-27115
05/23/2022, 8:23 PMorange-policeman-59119
05/23/2022, 8:25 PMpulumi config set openstack:authUrl $OS_AUTH_URL
pulumi config set openstack:cloud $OS_CLOUD
pulumi config set openstack:region $OS_REGION_NAME
...
And for secrets/passwords, like so:
pulumi config set --secret openstack:applicationCredentialSecret $OS_APPLICATION_CREDENTIAL_SECRET
Where $foo
should be the value of the variable set by your auth command, not the literal string "$foo".
Doing this, you should see a Pulumi.stackName.yaml
file appear, where stackName will be the name of the stack (aka environment). That file will look like:
config:
# unencrypted values appear as-is:
openstack:authUrl: <https://api.devops.in.idemia.com:5000>
openstack:cloud: skeleton-openstack
# encrypted values will look different:
openstack:applicationCredentialSecret:
secure: [redacted]
broad-raincoat-27115
05/23/2022, 8:34 PMorange-policeman-59119
05/23/2022, 8:54 PMbroad-raincoat-27115
05/24/2022, 5:52 AMorange-policeman-59119
05/24/2022, 3:55 PM