kind-island-70054
03/28/2022, 5:46 PMpulumi stack ls
shows both stacks when I thought it should only show the stacks from the current project by default. The -p option does not change anything. Using pulumi stack select theoneintheotherdirectory
creates a new yaml file…
Is that expected?astonishing-quill-88807
03/28/2022, 6:19 PMmany-psychiatrist-74327
03/28/2022, 6:32 PMpulumi refresh
, every subsequent pulumi preview
fails because the diff wants to delete-and-recreate the cluster, so it fails because the cluster is protected.
However, pulumi doesn’t tell me why it wants to recreate the cluster. There’s no “details” to observe because the preview fails. So I have no idea how to edit the state or the code to bring everything back in sync.
Is there a way to find out that information out of pulumi?thankful-coat-47937
03/28/2022, 10:27 PMbusy-island-31180
03/29/2022, 3:24 AMpull_request
resource?
https://www.pulumi.com/registry/packages/github/api-docs/repositorypullrequest/
https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_pull_request
This one seems a bit weird. Like you’d have to constantly be adding resources to a stack (new pull requests), or you need to automatically “forget” the resource, so you can recreate it? (pulumi state rm
)
I’m curious if anyone has used this before, and how they are using it.ancient-energy-2517
03/29/2022, 7:55 AMhandsome-candle-10543
03/29/2022, 8:30 AMawsnative.wafv2.WebAcl
/ awsnative.wafv2.WebAclAssociation
, but i have had similar problems in the past with certificates.many-psychiatrist-74327
03/29/2022, 1:23 PMpurple-lion-34129
03/29/2022, 1:26 PMpurple-lion-34129
03/29/2022, 1:27 PMmany-psychiatrist-74327
03/29/2022, 2:01 PMmagnificent-lifeguard-15082
03/29/2022, 2:46 PM+ command:local:Command pro-sto-site-sync creating error: transport is closing
+ command:local:Command pro-sto-site-sync **creating failed** error: transport is closing
pulumi:pulumi:Stack platform-production running panic: runtime error: invalid memory address or nil pointer dereference
pulumi:pulumi:Stack platform-production running [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc07034]
pulumi:pulumi:Stack platform-production running goroutine 9 [running]:
pulumi:pulumi:Stack platform-production running <http://github.com/pulumi/pulumi-command/provider/pkg/provider.(*command).run(0xc00007aae0|github.com/pulumi/pulumi-command/provider/pkg/provider.(*command).run(0xc00007aae0>, 0xf219e0, 0xc000382e40, 0xc000038600, 0x57, 0xc0000ad3b0, 0xc00003c2a0, 0x6a, 0x0, 0x0, ...)
pulumi:pulumi:Stack platform-production running /home/runner/work/pulumi-command/pulumi-command/provider/pkg/provider/command.go:115 +0x794
pulumi:pulumi:Stack platform-production running <http://github.com/pulumi/pulumi-command/provider/pkg/provider.(*command).RunCreate(0xc00007aae0|github.com/pulumi/pulumi-command/provider/pkg/provider.(*command).RunCreate(0xc00007aae0>, 0xf219e0, 0xc000382e40, 0xc0000ad3b0, 0xc00003c2a0, 0x6a, 0x0, 0x0, 0x0, 0x0)
pulumi:pulumi:Stack platform-production running /home/runner/work/pulumi-command/pulumi-command/provider/pkg/provider/command.go:50 +0x93
pulumi:pulumi:Stack platform-production running <http://github.com/pulumi/pulumi-command/provider/pkg/provider.(*commandProvider).Create(0xc000109b00|github.com/pulumi/pulumi-command/provider/pkg/provider.(*commandProvider).Create(0xc000109b00>, 0xf21a88, 0xc00007f560, 0xc00007cb90, 0x0, 0x0, 0x0)
pulumi:pulumi:Stack platform-production running /home/runner/work/pulumi-command/pulumi-command/provider/pkg/provider/provider.go:197 +0xe85
pulumi:pulumi:Stack platform-production running <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1(0xf21a88|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1(0xf21a88>, 0xc00007f560, 0xdad2e0, 0xc00007cb90, 0xdbbac0, 0x1471400, 0xf21a88, 0xc00007f560)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.19.0/proto/go/provider.pb.go:2602 +0x89
pulumi:pulumi:Stack platform-production running <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0xf21a88|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0xf21a88>, 0xc00007f230, 0xdad2e0, 0xc00007cb90, 0xc0000305a0, 0xc00000c8d0, 0x0, 0x0, 0xf0f3a0, 0xc00009d6e0)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x30a
pulumi:pulumi:Stack platform-production running <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler(0xdce940|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler(0xdce940>, 0xc000109b00, 0xf21a88, 0xc00007f230, 0xc00007aa80, 0xc0000c38c0, 0xf21a88, 0xc00007f230, 0xc0003aca80, 0x34a)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.19.0/proto/go/provider.pb.go:2604 +0x150
pulumi:pulumi:Stack platform-production running <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc000249880|google.golang.org/grpc.(*Server).processUnaryRPC(0xc000249880>, 0xf29e38, 0xc0000bf500, 0xc0003965a0, 0xc000109b90, 0x14344a0, 0x0, 0x0, 0x0)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/google.golang.org/grpc@v1.37.0/server.go:1217 +0x52b
pulumi:pulumi:Stack platform-production running <http://google.golang.org/grpc.(*Server).handleStream(0xc000249880|google.golang.org/grpc.(*Server).handleStream(0xc000249880>, 0xf29e38, 0xc0000bf500, 0xc0003965a0, 0x0)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/google.golang.org/grpc@v1.37.0/server.go:1540 +0xd0c
pulumi:pulumi:Stack platform-production running <http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0002fc260|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0002fc260>, 0xc000249880, 0xf29e38, 0xc0000bf500, 0xc0003965a0)
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/google.golang.org/grpc@v1.37.0/server.go:878 +0xab
pulumi:pulumi:Stack platform-production running created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
pulumi:pulumi:Stack platform-production running /home/runner/go/pkg/mod/google.golang.org/grpc@v1.37.0/server.go:876 +0x1fd
+ command:local:Command pro-dev-docs-sync creating error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:38829: connect: connection refused"
+ command:local:Command pro-dev-docs-sync **creating failed** error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:38829: connect: connection refused"
ambitious-father-68746
03/29/2022, 2:51 PMpulumi stack graph
take into account implicit dependencies, not just explicit?wonderful-twilight-70958
03/29/2022, 4:02 PMthousands-hairdresser-72380
03/29/2022, 4:13 PMpulumi stack rm
.
When they attempt to do so, they get this error:
error: [403] You do not have permission to perform this operation.
Increasing the verbosity hasn’t provided any more information.
I am able to delete them with no issue (note I am an admin for our team).
Thank you!fierce-xylophone-92490
03/30/2022, 9:21 AMawsx
for Python will be available? Our team feels stuck with AWS CDK until it is.calm-tent-21096
03/30/2022, 11:39 AMechoing-postman-88590
03/30/2022, 1:18 PMkubernetes.Provider
to use the default path ~/.kube/config
:
k8s_provider = kubernetes.Provider("k8s")
But if I try to access the k8s_provider.kubeconfig
argument it is empty.
For example if I try to reference it in a secret:
secrets = kubernetes.core.v1.Secret(
"secrets",
metadata={
"name": "secrets",
},
string_data={
"key": "value",
"KUBECONFIG": k8s_provider.kubeconfig,
},
opts=ResourceOptions(provider=k8s_provider),
)
tall-sundown-40473
03/30/2022, 2:19 PMpulumi_gcp.appengine.Application.get(resource_name, unique_provider_id)
Anyone knows where I can get the value for second parameter?stocky-petabyte-29883
03/30/2022, 3:01 PMagreeable-king-2755
03/30/2022, 3:38 PMadorable-computer-41765
03/30/2022, 4:46 PMwindows-curses
, and re-installed both pip packages. I get the following error:
Diagnostics:
pulumi:pulumi:Stack (pulumi-kubecost-dev):
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin\pulumi-language-python-exec", line 107, in <module>
loop.run_until_complete(coro)
File "C:\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\GitHub\pulumi-kubecost\venv\lib\site-packages\pulumi\runtime\stack.py", line 126, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "C:\GitHub\pulumi-kubecost\venv\lib\site-packages\pulumi\runtime\stack.py", line 49, in run_pulumi_func
func()
File "C:\GitHub\pulumi-kubecost\venv\lib\site-packages\pulumi\runtime\stack.py", line 126, in <lambda>
await run_pulumi_func(lambda: Stack(func))
File "C:\GitHub\pulumi-kubecost\venv\lib\site-packages\pulumi\runtime\stack.py", line 149, in __init__
func()
File "C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin\pulumi-language-python-exec", line 106, in <lambda>
coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
File "C:\Python39\lib\runpy.py", line 285, in run_path
return _run_code(code, mod_globals, init_globals,
File "C:\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File ".\__main__.py", line 3, in <module>
from curses import meta
File "C:\Python39\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
mammoth-garden-53682
03/30/2022, 5:02 PMpolite-napkin-90098
03/30/2022, 8:08 PMsalmon-optician-54886
03/31/2022, 3:18 AMaws.dlm.LifecyclePolicy
? (im trying to create ebs snapshots on a cron) I tried to run the one in the docs but am running into this error
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
and am not sure what’s causing thisvictorious-wall-1075
03/31/2022, 5:12 AMbillions-orange-71472
03/31/2022, 6:18 AMadamant-architect-10544
03/31/2022, 11:14 AMDiagnostics:
pulumi:pulumi:Stack (test-trial2):
Python 3.6 is approaching EOL and will not be supported in Pulumi soon. Check <https://github.com/pulumi/pulumi/issues/8131> for more details
debug: registering resource: ty=pulumi:pulumi:Stack, name=test-trial2, custom=False, remote=False
debug: registering resource: ty=pulumi:providers:kubernetes, name=my-k8s, custom=True, remote=False
debug: registering resource: ty=kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>, name=trial-edge, custom=True, remote=False
debug: Waiting for outstanding RPCs to complete
debug: RPCs successfully completed
debug: Waiting for 55 outstanding tasks to complete
debug: beginning rpc register resource
debug: beginning rpc register resource
debug: beginning rpc register resource
debug: beginning rpc register resource outputs
debug: resource registration prepared: ty=pulumi:pulumi:Stack, name=test-trial2
debug: resource registration successful: ty=pulumi:pulumi:Stack, urn=urn:pulumi:trial2::test::pulumi:pulumi:Stack::test-trial2
debug: resource registration prepared: ty=pulumi:providers:kubernetes, name=my-k8s
debug: register resource outputs prepared: urn=urn:pulumi:raji-trial2::test::pulumi:pulumi:Stack::test-trial2, props=
debug: resource registration successful: urn=urn:pulumi:raji-trial2::test::pulumi:pulumi:Stack::test-trial2, props=
debug: resource registration successful: ty=pulumi:providers:kubernetes, urn=urn:pulumi:trial2::test::pulumi:providers:kubernetes::my-k8s
debug: resource registration prepared: ty=kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>, name=trial-edge
error: update failed
debug: resource registration successful: ty=kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>, urn=urn:pulumi:trial2::test::kubernetes:<http://helm.sh/v3:Release::trial-edge|helm.sh/v3:Release::trial-edge>
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (trial-edge):
warning: Helm release "trial-edge-8kchrd9c" was created but has a failed status. Use the `helm` command to investigate the error, correct it, then retry. Reason: timed out waiting for the condition
error: 1 error occurred:
* Helm release "trial-edge/trial-edge-8kchrd9c" was created, but failed to initialize completely. Use Helm CLI to investigate.: failed to become available within allocated timeout. Error: Helm Release trial-edge/trial-edge-8kchrd9c: timed out waiting for the condition
The same chart goes through fine when deploying manually (helm status shows deployed as well). All k8s objects are created properly in both the cases. How do I need to debug this further?echoing-postman-88590
03/31/2022, 11:47 AMstocky-petabyte-29883
03/31/2022, 12:42 PMlet accountDetails = [
{name: 'test', email: '<mailto:testt@example.io|testt@example.io>', environment: 'test', billingInfoAccess: 'ALLOW'}
];
var accountOutput: { accountName: string, accountId: string }[] = [];
for (const accountDetail of accountDetails) {
const account = new aws.organizations.Account(accountDetail.name, {
email: accountDetail.email,
iamUserAccessToBilling: accountDetail.billingInfoAccess,
name: accountDetail.name,
tags: {
Environment: accountDetail.environment
},
});
account.arn.apply(arn => {
console.log(arn);
accountOutput.push({accountName: accountDetail.name, accountId: arn})
})
};
export const outputs = {
accountInfo: accountOutput,
}