creamy-monkey-35142
03/24/2023, 7:53 AMsecret
is required and I didn’t find a way to add secret value during import,average-student-28073
03/24/2023, 10:55 AMbrash-gigabyte-81569
03/24/2023, 1:12 PMplugin install
has ability to accept a --server
flag but how does that work? Also, I would prefer that pulumi up
and pulumi preview
would download the required plugins but unclear if it is possible if I have a mixture of these private resource providers and the public ones like aws. Thanks in advance.miniature-receptionist-24463
03/24/2023, 1:53 PMxyz-bucket
, {
}, {
provider: [devProvider, prodProvider], //Error here
});elegant-sundown-11861
03/24/2023, 2:32 PM--refresh
option (method read is implemented) and expect that Pulumi to re-configure resource and eliminate drift
• Language: Python
• Pulumi version: 3.56.0
Details:
• I run pulumi preview --diff -r
• Pulumi shows that manually changed resource should be updated: pulumi-python:dynamic:Resource: (update)
But there are no details in diff what are going to be substituted 😬
~ pulumi-python:dynamic:Resource: (update)
filed_1 : "aaaa"
filed_2 : "bbbb"
filed_3 : [
[0]: "cccc"
]
Resources:
~ 1 to update
X unchanged
• As I run pulumi up -y -r
, Pulumi re-configures resource and eliminates drift (pulumi up works good but pulumi preview doesn't show details)
• I checked preview json and couldn't find diffReasons
for this resource. However, other resources that are supposed to be updated have this field 😬
code example:
def read(self, id_, args):
...
value_1 = read_field_1()
value_2 = read_field_2()
value_3 = read_field_3()
return ReadResult(id_, outs={'filed_1': value_1,
'filed_2': value_2,
'filed_3': value_3]
})
def diff(self, id, _olds, _news):
return DiffResult(
changes=_olds != _news,
replaces=[],
stables=None,
delete_before_replace=True
)
I would be grateful if someone help me with this issue.bulky-pencil-51274
03/24/2023, 4:36 PMlimited-rainbow-51650
03/24/2023, 5:02 PMmicroscopic-cpu-38113
03/24/2023, 5:14 PM[38;5;1merror: [0m[0mPreview failed: refreshing urn:pulumi:staging::spinoff::datadog:index/user:User::us5-standard-user-user1: 1 error occurred:
* error getting user from <https://us5.datadoghq.com/api/v2/users/xxxxxxxxxxxxxxxxx>: 403 Forbidden: {"errors":["Forbidden"]}
Datadog support has requested the headers that was sent from Pulumi to Datadog, is there a way to retrieve this information? TIAcalm-cat-43230
03/24/2023, 6:03 PMhallowed-postman-2096
03/24/2023, 11:32 PMimport pulumi_aws_native as aws_native
aws_native.dynamodb.Table(
table_id,
table_name="example",
billing_mode="PROVISIONED",
opts=pulumi.ResourceOptions(protect=True),
attribute_definitions=[
aws_native.dynamodb.TableAttributeDefinitionArgs(
attribute_name="PrimaryKey",
attribute_type="S",
)
],
provisioned_throughput=aws_native.dynamodb.TableProvisionedThroughputArgs(
read_capacity_units=100,
write_capacity_units=1,
),
key_schema=[
aws_native.dynamodb.TableKeySchemaArgs(
attribute_name="PrimaryKey",
key_type="HASH",
),
],
)
And here is the error:
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got 'typing.Union[typing.Sequence[typing.Union[pulumi_aws_native.dynamodb._inputs.TableKeySchemaArgs, typing.Awaitable[pulumi_aws_native.dynamodb._inputs.TableKeySchemaArgs], pulumi.output.Output[NoneType]]], typing.Any, typing.Awaitable[typing.Union[typing.Sequence[typing.Union[pulumi_aws_native.dynamodb._inputs.TableKeySchemaArgs, typing.Awaitable[pulumi_aws_native.dynamodb._inputs.TableKeySchemaArgs], pulumi.output.Output[NoneType]]], typing.Any]], pulumi.output.Output[NoneType]]'
More info here. Appreciate any guidance, Thanks !creamy-monkey-35142
03/25/2023, 12:54 PMpulumi up
for Tunnel Config, it alway show diff: ~config
Previewing update (<redacted>):
Type Name Plan Info
pulumi:pulumi:Stack <redacted>
~ └─ cloudflare:index:TunnelConfig test_tunnel-TunnelConfig update [diff: ~config]
click on details show
~ cloudflare:index/tunnelConfig:TunnelConfig: (update)
[id=<redacted> ]
[urn=urn:pulumi:<redacted>::pulum::cloudflare:index/tunnelConfig:TunnelConfig::test_tunnel-TunnelConfig]
[provider=urn:<redacted>::pulum::pulumi:providers:cloudflare::default_5_0_0::1523d07a-58d4-404d-94ac-5494f67a769c]
~ config: {
+ warpRouting: {
+ enabled : true
}
}
when I run pulumi stack export
and search for urn "urn": "urn:pulumi:<redacted>::pulum::cloudflare:index/tunnelConfig:TunnelConfig::test_tunnel-TunnelConfig"
, at inputs
section, the value of warpRouting
is
"warpRouting": {
"__defaults": [],
"enabled": true
}
but at outputs
section, it’s
"warpRouting": null
so I guess it cause problem of diff when run pulumi up/preview
cuddly-napkin-89521
03/26/2023, 9:39 AMconst chaosMesh = new k8s.helm.v3.Release(
"chaostest",
{
name: "chaos-mesh",
chart: "chaos-mesh",
namespace: "chaos-mesh",
version: "2.5.1",
repositoryOpts: {
repo: "<https://charts.chaos-mesh.org>",
},
values: {
controllerManager: {
enableFilterNamespace: true,
},
chaosDaemon: {
runtime: "containerd",
socketPath: "/run/containerd/containerd.sock",
},
annotations: {
"<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>": "nginx",
},
},
},
{ dependsOn: [k8sCluster] }
);
careful-summer-45848
03/26/2023, 3:57 PMbest-dinner-57220
03/26/2023, 9:13 PMexport interface ReplicationConfigurationArgs {
/**
* A destination configuration block (documented below).
*/
destination: pulumi.Input<inputs.efs.ReplicationConfigurationDestination>;
/**
* The ID of the file system that is to be replicated.
*/
sourceFileSystemId: pulumi.Input<string>;
}
narrow-cpu-35517
03/27/2023, 9:03 AM-- kubernetes:apps/v1:Deployment mobile-bff-deployment deleting original (0s) error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "https:/XXXX.yl4.us-east-1.eks.amazonaws.com/openapi/v2?timeout=32s": getting credentials: exec: executable aws failed with exit code 255
narrow-cpu-35517
03/27/2023, 9:04 AMnarrow-cpu-35517
03/27/2023, 9:06 AMsparse-intern-71089
03/27/2023, 11:10 AMcrooked-raincoat-45073
03/27/2023, 12:05 PM$ pulumi $PULUMI_ACTION --logtostderr --non-interactive --diff -s $PULUMI_STACK
Previewing update (8g-sandbox):
[resource plugin kubernetes-3.23.0] installing
[resource plugin aws-5.16.2] installing
[resource plugin aws-5.30.1] installing
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:8g-sandbox::cr-eks::pulumi:pulumi:Stack::cr-eks-8g-sandbox]
@ previewing update....
Error: Failed to parse kubectl version JSON output. Received: : Error: Failed to parse kubectl version JSON output. Received:
at Object.assertCompatibleKubectlVersionExists (/snapshot/eks/bin/dependencies.js:46:15)
at createCore (/snapshot/eks/bin/cluster.js:211:20)
at createCluster (/snapshot/eks/bin/cluster.js:793:18)
at new ClusterInternal (/snapshot/eks/bin/cluster.js:872:25)
at Object.construct (/snapshot/eks/bin/cmd/provider/cluster.js:21:29)
at Provider.construct (/snapshot/eks/bin/cmd/provider/index.js:129:100)
at Server.<anonymous> (/snapshot/eks/node_modules/@pulumi/pulumi/provider/server.js:315:52)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/eks/node_modules/@pulumi/pulumi/provider/server.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "/root/.pulumi/bin/pulumi-language-python-exec", line 197, in <module>
loop.run_until_complete(coro)
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 136, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func
await wait_for_rpcs()
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 82, in wait_for_rpcs
raise exn from cause
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/rpc_manager.py", line 71, in rpc_wrapper
result = await rpc
^^^^^^^^^
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 921, in do_register
resp = await asyncio.get_event_loop().run_in_executor(None, do_rpc_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 918, in do_rpc_call
handle_grpc_error(exn)
File "/builds/8gears/saas-factory/k8s/infra/aws/.venv/lib/python3.11/site-packages/pulumi/runtime/settings.py", line 273, in handle_grpc_error
raise grpc_error_to_exception(exn)
Exception: Failed to parse kubectl version JSON output. Received:
Resources:
31 unchanged
If I run the same container with the same args locally instead the UI, I don't get this error, so its super difficult to trace the issue.millions-pharmacist-626
03/27/2023, 12:37 PM__main__.py
necessarily?
glue-jobs-pulumi
├── job-1
│ └── __main__.py
├── job-2
│ └── __main__.py
├── job-3
│ └── __main__.py
├── Pulumi.yml
└── Pulumi.dev.yml
damp-spring-44224
03/27/2023, 2:06 PMports:
- "3000:3000"
- "3001:3000"
I want to create seperate load balancer and listener for each port mapping in the above.
Can anyone suggest how to create the listeners and target groups for the above requirement?quaint-furniture-91662
03/27/2023, 7:26 PMbulky-kite-69343
03/27/2023, 7:35 PMvar res = new MyResource("res",
new MyResourceArgs { Prop = "new-value" },
new CustomResourceOptions { IgnoreChanges = { "root.nested[*]" } });
^will this work to ignore everything under that nested block?bulky-kite-69343
03/27/2023, 7:38 PMroo.nested = [ {"name": "foo", "value": "bar"}, {"name": "wiz", "value": "bang"} ]
narrow-ghost-95764
03/27/2023, 8:21 PMgorgeous-minister-41131
03/27/2023, 10:36 PMnarrow-cpu-35517
03/27/2023, 11:04 PMpolite-umbrella-11196
03/28/2023, 4:09 AMsparse-intern-71089
03/28/2023, 4:44 AMrich-motorcycle-71684
03/28/2023, 5:21 AM