limited-rain-96205
05/12/2021, 7:55 PMLocalWorkspace.selectStack()
would delete the encryptedkey:
section of the stack's yaml file?worried-city-86458
05/13/2021, 9:22 AMpulumi up
cli seems to be roughly:
• var stack = LocalWorkspace.CreateOrSelectStackAsync
• stack.Workspace.InstallPluginAsync
• stack.SetAllConfigAsync
• stack.RefreshAsync // needed?
• stack.UpAsync
Would the equivalent of the pulumi preview
cli be the following? (Not really in any examples?)
• var stack = LocalWorkspace.CreateOrSelectStackAsync
• stack.Workspace.InstallPluginAsync
• stack.SetAllConfigAsync
• stack.RefreshAsync // needed?
• stack.PreviewAsync
Are any of these steps not really needed like the refresh?refined-journalist-70469
05/17/2021, 2:46 AMworried-city-86458
05/17/2021, 5:37 AMalert-dream-58492
05/20/2021, 7:41 PMbored-table-20691
05/21/2021, 11:26 PMdazzling-salesclerk-51689
05/24/2021, 7:53 PMautomation_api
on node.js
to create resources on AWS and K8s.
We have two classes that performs the text-book Pulumi flow. Each one independently is working fine.
The weird issue pops when we're running them one after the other. Doesn't matter which one is the first, the second one is always failing with a grpc
related error:
Exception has occurred: Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (.../node_modules/@grpc/grpc-js/src/call.ts:81:24)
Some more metadata:
• There are two different stacks for each one.
• There is no paralleling, one is done and only then the other starts
• We're using an inline function
• Pulumi version: 3.3.0
Any ideas what could go wrong?
Thanks!bumpy-agent-19616
05/25/2021, 5:41 PMconst stack = await LocalWorkspace.createStack({
stackName,
projectName,
program: createPulumiProgram(stackName),
},{
projectSettings: {
name: projectName,
runtime: 'nodejs',
description: projectName,
backend: {
url: 'azblob://***********'
},
},
stackSettings: {
[stackName]: {
secretsProvider: 'azurekeyvault://********.<http://vault.azure.net/keys/********|vault.azure.net/keys/********>',
config: {
"azure:location": Constants.AZURE_CONFIG.location,
"azure:environment": Constants.AZURE_CONFIG.environment,
"azure:clientId": Constants.AZURE_CONFIG.clientId,
"azure:clientSecret": { secret: Constants.AZURE_CONFIG.clientSecret },
"azure:subscriptionId": Constants.AZURE_CONFIG.subscriptionId,
"azure:tenantId": Constants.AZURE_CONFIG.tenantId,
}
},
},
envVars: {
"AZURE_STORAGE_KEY": "******",
"AZURE_STORAGE_ACCOUNT": "**********",
"AZURE_KEYVAULT_AUTH_VIA_CLI": "false",
},
});
Error is as follows,
CommandError: code: 255
stdout: Created stack 'statictest'
stderr: error: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
err?:
at Object.createCommandError (/Users/veerasamy001/Projects/3Labs/cloud-self-service-portal/node_modules/@pulumi/pulumi/automation/errors.js:71:17)
at ChildProcess.<anonymous> (/Users/veerasamy001/Projects/3Labs/cloud-self-service-portal/node_modules/@pulumi/pulumi/automation/cmd.js:63:40)
at ChildProcess.emit (node:events:378:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
commandResult: CommandResult {
stdout: "Created stack 'statictest'\n",
stderr: '*error: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables*\n',
code: 255,
err: undefined
}
}
I am actually facing the above issue even though I have emvironment variables for Azure Blob storage. Any help would be much appreciated.broad-hairdresser-1495
05/28/2021, 5:39 PMauto.create_or_select_stack
so that stack will use my local path work_dir="localPath/"
with
from pulumi import automation as auto
stack = auto.create_or_select_stack(stack_name=stack_name, project_name=project_name, program=pulumi_program, work_dir="localPath/")
it seems to jump in here:
from pulumi/automation/_local_workspace.py
if _is_inline_program(**args): # <<< here
return _inline_source_stack_helper(stack_name, program, project_name, Stack.create_or_select, opts) # type: ignore
if _is_local_program(**args):
return _local_source_stack_helper(stack_name, work_dir, Stack.create_or_select, opts) # type: ignore
due to I get this error:
error: unable to open bucket file:///C:/Users/romlaz/AppData/Local/Temp/automation-ib7k43_6/myLOGS2: CreateFile C:\Users\romlaz\AppData\Local\Temp\automation-ib7k43_6\myLOGS2: The system cannot find the file specified.
It tries to create a temp location but I need to have this stated in work_dir="localPath/"
elegant-stone-54832
06/02/2021, 6:17 PMworried-city-86458
06/04/2021, 6:13 AMicy-jordan-58549
06/04/2021, 9:24 AM(node:5747) UnhandledPromiseRejectionWarning: Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
at requireTestModeEnabled (/node_modules/@pulumi/pulumi/runtime/settings.js:123:15)
at Object.getMonitor (/node_modules/@pulumi/pulumi/runtime/settings.js:214:13)
at /node_modules/@pulumi/pulumi/runtime/invoke.js:123:40
at Generator.next (<anonymous>)
at fulfilled (/node_modules/@pulumi/pulumi/runtime/invoke.js:18:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
lemon-agent-27707
06/05/2021, 8:28 PMicy-jordan-58549
06/08/2021, 11:25 AMconst config = await authorization.getClientConfig();
const token = await authorization.getClientToken();
Getting:
creating error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
worried-city-86458
06/16/2021, 7:15 PMproud-pizza-80589
06/18/2021, 8:08 PMbumpy-agent-19616
06/21/2021, 10:01 AM<project>:atlas:
cidr: 172.xx.xx.xx/24
cluster:
autoScalingDiskGbEnabled: true
mongoDbMajorVersion: 4.2
networkpeering:
resourceGroupName: rg-name
vnetName: vnet-name
numShards: 1
full-artist-27215
06/21/2021, 4:38 PMhallowed-ice-8403
06/23/2021, 7:54 AMdef pulumi_program():
create_pulumi_program(content)
stack = auto.select_stack(stack_name=stack_name, project_name=project_name,program=pulumi_program)
lemon-agent-27707
06/30/2021, 8:25 PMresolutions
in your package.json to resolve your dependencies to a single version of the pulumi sdk. More info in the PR here: https://github.com/pulumi/pulumi/pull/7349wet-soccer-72485
07/03/2021, 10:33 PMbetter-shampoo-48884
07/04/2021, 9:19 AMhandsome-state-59775
07/06/2021, 7:54 AMBuilding wheels for collected packages: pulumi-azure-native, pulumi-kubernetes, pulumi-tls
Building wheel for pulumi-azure-native (setup.py): started
Building wheel for pulumi-azure-native (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/vsts/work/1/s/experimental/sid/iac-azure/infra/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5kvg33b8/pulumi-azure-native/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5kvg33b8/pulumi-azure-native/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ete6c603
cwd: /tmp/pip-install-5kvg33b8/pulumi-azure-native/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
these errors only show up for pulumi-* packages - any insights please?wonderful-piano-20316
07/10/2021, 10:14 PMhallowed-ice-8403
07/12/2021, 2:29 PMfrom pulumi import StackReference
stack_ref = StackReference(name="stack-reference",stack_name = "project.mystack")
s3_name = stack_ref.get_output("s3_bucket")
print(s3_name)
bumpy-agent-19616
07/13/2021, 8:20 AMbright-dawn-60437
07/13/2021, 5:57 PMbright-dawn-60437
07/13/2021, 5:57 PMlimited-rainbow-51650
07/15/2021, 1:32 PMlimited-rain-96205
07/22/2021, 3:42 AMlimited-rain-96205
07/22/2021, 3:42 AMred-match-15116
07/22/2021, 4:00 AM