future-window-78560
10/23/2021, 2:21 AMminiature-advantage-31279
10/23/2021, 3:20 AMconst vpc = awsx.ec2.Vpc.fromExistingIds(name, { vpcId: props.vpcId });
console.log(await vpc.publicSubnetIds);
However if I create a new vpc, it will return the correct public subnet IDs, it seems there is missing initialisation internally if we are using fromExistingIds?few-army-64952
10/24/2021, 9:42 PMbig-pizza-47421
10/25/2021, 7:14 AMlimited-rainbow-51650
10/25/2021, 8:28 AMComponentResource
?billions-mechanic-26704
10/25/2021, 9:19 AMpulumi up
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/usr/local/bin/pulumi-language-python-exec", line 107, in
File "/Users/bgarcial/workspace/wmlab-infrastructure/venv/lib/python3.8/site-packages/pulumi/runtime/invoke.py", line 146, in invoke
raise invoke_error
Exception: invoke of github:index/getUser:getUser failed: invocation of github:index/getUser:getUser returned an error: invoking github:index/getUser:getUser: GET <https://api.github.com/users/bgarcial>: 401 Bad credentials []
error: an unhandled error occurred: Program exited with non-zero exit code: 1
My organization use github credentials as an authentication system.
I have the PULIMI ACCESS TOKEN enabled and working well. I am not sure what could be happening.millions-furniture-75402
10/25/2021, 1:17 PMgifted-megabyte-80050
10/25/2021, 2:08 PMpulumi import
to import a more complex dashboard I've noticed that the MetaData
properties are not set.
Inspecting the dashboard with the az portal dashboard
plugins
It appears there is no way to set the Asset properties in the DashboardPartArgs class.
Is there any best practice for deploying dashboards with Pulumi.
Thanksrhythmic-rain-31941
10/25/2021, 3:33 PMfull-artist-27215
10/25/2021, 3:44 PMpulumi.Config()
inside a Dynamic Provider implementation? I've tried this in both Python and TypeScript, and whenever I try to get something from the config, I get this error:
error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
wonderful-twilight-70958
10/25/2021, 5:18 PMpulumi set --secret xxx yyy
(or when it decodes, not sure) i lose all my escaping šfresh-wire-95028
10/25/2021, 5:45 PMprehistoric-kite-30979
10/25/2021, 5:51 PMpulumi stack select
Please choose a stack, or create a new one: <redacted>
...
error: invalid character '}' after top-level value
Has anyone seen this before? Iāve looked through all the stack and pojrect configs as well as the code and it all looks fineastonishing-quill-88807
10/25/2021, 6:57 PMtf2pulumi
but when I run it I get the output no resource plugin '' found in the workspace or on your $PATH
melodic-tent-12974
10/25/2021, 6:58 PMpulumi stack output
. I have a JSON property and want to get at a leaf node. Can this be done directly with pulumi stack output
? I want to do something like pulumi stack output root.tree.subtree.leaf
but that doesnāt work. I can do it myself like pulumi stack output root | jq .tree.subtree.leaf
but I feel like that is just a workaround.bitter-island-28909
10/25/2021, 7:13 PMunsecret
function but it threw a val.resources is not a function
exception⦠guess the object I passed it is the wrong type, somehow?little-soccer-5693
10/25/2021, 8:55 PMsteep-cartoon-89174
10/25/2021, 9:05 PMsteep-cartoon-89174
10/25/2021, 9:05 PMminiature-advantage-31279
10/25/2021, 9:19 PMpulumi up
?rough-rain-68282
10/26/2021, 5:54 AMblue-pharmacist-31672
10/26/2021, 10:14 AMIServiceProvider
with Pulumi in .NET as documented here.
However, I'm getting an error of System.ApplicationException: Failed to resolve instance of type MyStack from service provider.
As far as I am aware I have configured the stack in my service provider but I cannot work out how to solve this error. Looking at the source code it seems like it should work.
My entry point for the application is simply
static Task Main()
{
var serviceCollection = new ServiceCollection();
var serviceProvider = serviceCollection
.AddSingleton<Stack, MyStack>()
.BuildServiceProvider();
return Deployment.RunAsync<MyStack>(serviceProvider);
}
And my Pulumi Stack
class MyStack : Stack
{
public MyStack(System.IServiceProvider provider)
{
}
}
A trivially simple application, but I've had the same issue on the main application I'm building. Am I doing something wrong with my use of the IServiceProvider
? It's not specified in the docs so I am not sure.
Any help is greatly appreciated. Thank you.brave-nightfall-19158
10/26/2021, 3:52 PMplain-keyboard-29627
10/26/2021, 4:53 PMpulumi new javascript
and attempt to change const pulumi = require("@pulumi/pulumi");
into import pulumi from "@pulumi/pulumi";
, if I run/preview, I always get the following error:
error: Running program 'c:\code\xyz\infra' failed with an unhandled exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module c:\code\xyz\infra\index.js from c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js not supported.
Instead change the require of index.js in c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js:219:31)
dazzling-family-13566
10/26/2021, 4:56 PMexpected non-nil error with nil state during Create of urn:pulumi:
gorgeous-minister-41131
10/26/2021, 6:30 PMcolossal-vr-62639
10/27/2021, 5:41 AMgithub:index:RepositoryEnvironment (test-environment):
error: PUT <https://api.github.com/repos//my-repository/environments/test-environment>: 404 Not Found []
I'm following the API Docs here which states you should be using theĀ Repository.Name
. What I do notice here is after theĀ /repos/
Ā there's a double forward slash (/
) as if it's missing the owner.
If I try theĀ Repository.FullName
Ā I get
github:index:RepositoryEnvironment (test-environment):
error: PUT <https://api.github.com/repos//pgermishuys/my-repository/environments/test-environment>: 404 Not Found []
handsome-restaurant-93114
10/27/2021, 2:48 PMpulumi preview
?gray-city-50684
10/27/2021, 3:02 PMswift-island-2275
10/27/2021, 6:40 PM