wooden-lighter-66320
05/07/2020, 1:03 AMlimited-rainbow-51650
05/07/2020, 9:09 PMchai
test helper in a Pulumi unit test?
network.name.apply((name) => {
name.should.equal('empty_network')
});
results in my test passing, but still got this stack:
(node:50206) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'should' of undefined
at /Users/ringods/Projects/cumundi/libraries/packages/iac-gcp/test/network.spec.ts:60:18
at /Users/ringods/Projects/cumundi/libraries/node_modules/@pulumi/pulumi/output.js:249:35
at Generator.next (<anonymous>)
at /Users/ringods/Projects/cumundi/libraries/node_modules/@pulumi/pulumi/output.js:21:71
at new Promise (<anonymous>)
at __awaiter (/Users/ringods/Projects/cumundi/libraries/node_modules/@pulumi/pulumi/output.js:17:12)
at applyHelperAsync (/Users/ringods/Projects/cumundi/libraries/node_modules/@pulumi/pulumi/output.js:228:12)
at /Users/ringods/Projects/cumundi/libraries/node_modules/@pulumi/pulumi/output.js:182:65
at processTicksAndRejections (internal/process/task_queues.js:97:5)
little-cartoon-10569
05/08/2020, 12:53 AMError: Program run without the Pulumi engine available; re-run using theI've triedCLIpulumi
pulumi login
and I've copied Pulumi.yaml from the source directory (btw it's not documented anywhere that you have to do this in order to use the same project/stack in multiple places - all the docs assume you're creating a new project and stack every time).many-dress-88879
05/08/2020, 9:27 PMhelm
cli to see those deployed helm charts in the cluster afterward and potentially make adjustments with itmany-dress-88879
05/08/2020, 9:28 PMmagnificent-accountant-19074
05/11/2020, 9:57 AMany
but it looks like when api invokes lambda only allowed method is POST
is that so? I'm getting error from AWS api
Unable to put integration on 'ANY' for resource at path '/': Integrations of type 'AWS_PROXY' currently only supports Lambda function and Firehose stream invocations. here is my SO question
https://stackoverflow.com/questions/61724909/pulumi-aws-proxy-currently-only-supports-lambda-functionacceptable-stone-35112
05/11/2020, 2:16 PMlittle-cartoon-10569
05/11/2020, 10:44 PM@pulumi/pulumi
), I'm calling a function exported from my own module in a different project (brought in using "references": [{ "path": "../mypath/project"}] in my tsconfig.json). That function calls pulumi.runtime.registerStackTransformation()
. That call produces this error:
Error: The root stack resource was referenced before it was initialized.
at Object.registerStackTransformation (/app/pulumi/node_modules/@pulumi/pulumi/runtime/stack.js:211:15)
at Object.registerAutoTags (/app/pulumi/autotag/autotag.ts:246:20)
at Object.<anonymous> (/app/pulumi_stacks/vpc_poc/index.ts:25:11)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Module.m._compile (/app/pulumi_stacks/vpc_poc/node_modules/@pulumi/pulumi/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Object.require.extensions.<computed> [as .ts] (/app/pulumi_stacks/vpc_poc/node_modules/@pulumi/pulumi/node_modules/ts-node/src/index.ts:442:12)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
The code is good: when I lift it out of my project/module and put it directly into index.ts it works fine. I'm guessing that this is a scoping issue.
Question: how do I call Pulumi code from projects/modules that are outside my application's project? Should I be passing "pulumi" or "pulumi.runtime" from my main module into my referenced project?prehistoric-account-60014
05/12/2020, 6:04 PMpulumi up
in CI.
error: no resource plugin 'kubernetes' found in the workspace or on your $PATH
I looked into existing GitHub issues but none of the solutions posted there seems to be working out.wooden-lighter-66320
05/13/2020, 10:23 PMwooden-lighter-66320
05/14/2020, 8:39 PMlively-oil-7382
05/15/2020, 2:40 AMprehistoric-account-60014
05/15/2020, 7:28 PMpulumi.asset.FileArchive
, what is the path provided relative to?full-dress-10026
05/18/2020, 8:19 PMcurved-ghost-20494
05/19/2020, 12:57 AMcurved-ghost-20494
05/19/2020, 12:58 AMcurved-ghost-20494
05/19/2020, 2:49 AMclass Foo {
bar () {
return 'bar'
}
baz () {
return this.bar()
}
}
colossal-room-15708
05/23/2020, 7:25 AMrequire()
and when requireSecret()
?
From an end result point of view it seems identical. The secrets from the config are marked as [secret]
no matter which one I use.
However, I had issues working with requireSecret()
now where it would complain that I'm not allowed to run toString
on an output.
const logAnalyticsWorkspacePrimarySharedKey = config.requireSecret('logAnalyticsWorkspacePrimarySharedKey').apply(s => s);
This is later on used as
protectedSettings: `{"workspaceKey": "${logAnalyticsWorkspacePrimarySharedKey}"}`,
And that gives me the following:
protectedSettings : "\"{\\\"workspaceKey\\\": \\\"Calling [toString] on an [Output<T>] is not supported.\\n\\nTo get the value of an Output<T> as an Output<string> consider either:\\n1: o.apply(v => `prefix${v}suffix`)\\n2: pulumi.interpolate `prefix${v}suffix`\\n\\nSee <https://pulumi.io/help/outputs> for more details.\\nThis function may throw in a future version of @pulumi/pulumi.\\\"}\""
stocky-island-3676
05/25/2020, 11:58 AMancient-megabyte-79588
05/27/2020, 10:19 PMnpm install @pulumi\pulumi
.. I'm getting this error at the end of a long output
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vigil\AppData\Roaming\npm-cache\_logs\2020-05-27T22_01_30_596Z-debug.log
ancient-megabyte-79588
05/27/2020, 10:21 PMnpm install -g @pulumi\pulumi
works thoughancient-megabyte-79588
05/27/2020, 10:22 PMgyp
or`node-pre-gyp` ..billowy-army-68599
ancient-megabyte-79588
05/28/2020, 12:23 AM"dependencies": {
"@pulumi/azure": "^2.0.0",
"@pulumi/azuread": "^1.8.0",
"@pulumi/kubernetes": "^1.6.0",
"@pulumi/pulumi": "^1.0.0"
}
ancient-megabyte-79588
05/28/2020, 12:24 AMancient-megabyte-79588
05/28/2020, 12:26 AMancient-megabyte-79588
05/28/2020, 12:26 AMbillowy-army-68599
victorious-vase-44805
05/28/2020, 8:56 AMlet instance = new gcp.compute.Instance(instanceName, {
bootDisk: {
initializeParams: {
image: "projects/centos-cloud/global/images/centos-7-v20200521"
}
},
machineType: "n1-standard-2",
networkInterfaces: [
{
accessConfigs: [{
networkTier: "STANDARD",
}],
network: "default",
},
]
}, { dependsOn: dependsOn })
I unfortunately for the life of me can’t work out how to do it.steep-angle-29984
05/28/2020, 10:53 AMapply()
on an Output
of a resource, shouldn't the callback only be called when the resource is created and the value is available when doing a pulumi preview
?