brief-wolf-79064
01/15/2021, 12:19 AMcluster = eks.Cluster('my-cluster')
namespace = k8s.core.v1.Namespace(
'foo',
metadata=dict(name='foo'),
opts=pulumi.ResourceOptions(provider=cluster.provider)
)
brief-wolf-79064
01/15/2021, 12:20 AMpulumi-up
I get an exception that AttributeError: 'str' object has no attribute 'urn'
brief-wolf-79064
01/15/2021, 12:21 AMcluster.provider.apply(print)
agreeable-notebook-88887
01/15/2021, 6:17 PMfuture-hydrogen-91224
01/15/2021, 8:37 PMfuture-hydrogen-91224
01/15/2021, 8:42 PMbrash-noon-26580
01/15/2021, 9:47 PMpulumi.config.ConfigMissingError: Missing required configuration variable 'project:BILLING_ACCOUNT'
please set a value using the command `pulumi config set project:BILLING_ACCOUNT <value>`
Could someone point me in the correct direction on the best way to handle this?bland-lamp-16797
01/20/2021, 5:07 PMservice_object = pulumi_kubernetes.core.v1.Service.get('whatever')
returns almost empty Service?
All the sudden, service_object.status
is None and I can't figure out why?helpful-rain-41425
01/21/2021, 2:32 AMimport pulumi
from pulumi_azure_nextgen.containerinstance import latest as containerinstance
from pulumi_azure_nextgen.resources import latest as resources
from pulumi_azure_nextgen.storage import latest as storage
app_name = "tigstack"
resource_group = resources.ResourceGroup("resourceGroup",
resource_group_name="rg-syd-dev-{0}".format(app_name),
location="australiaeast")
account = storage.StorageAccount("storageAccount",
account_name="grafana",
resource_group_name=resource_group.name,
location=resource_group.location,
sku=storage.SkuArgs(
name="Standard_LRS"
),
kind="StorageV2")
file_share = storage.FileShare("smbFileShare",
account_name=account.name,
enabled_protocols="SMB",
resource_group_name=resource_group.name,
share_name="tigstack")
storageAccountKeys = pulumi.Output.all(resource_group.name, account.name).apply(
lambda args: storage.list_storage_account_keys(args))
I came up with that where I want to refer to storageAccountKeys later in the code but it doesn't seem to work - i think I don't understand the output.all that wellmillions-toddler-84466
01/25/2021, 6:11 PMaverage-school-38756
01/26/2021, 3:17 AMpulumi_docker.Image
doesn't have an "id" value anymore, and using the full image_name
value for pulumi.ResourceOptions(import_="")
still results in a "create" rather than "import" for pulumi up
chilly-receptionist-94436
01/26/2021, 8:38 PMstocky-hair-65085
01/27/2021, 1:04 PMstocky-hair-65085
01/28/2021, 2:33 PMOutput.all()
• In a python lambda create a dict with the needed structure. and dump it using yaml.dump
.
• This string is passed to Kubernetes Secret which is mounted into the needed pod.
I'm not fully happy with this approach because the numbered arguments in the lambda of Output.all()
are error-prone when you have more than a few resources.sparse-state-34229
01/31/2021, 8:49 AMcreate_before_destroy
. Can't find anything on the site or slack searchelegant-carpet-82808
02/03/2021, 1:48 AMmysterious-area-77666
02/09/2021, 8:16 PMpkiSecret
?quaint-tailor-52411
02/10/2021, 9:18 PMpulumi up
was expecting it to relaunch a vm. but the state diff doesn’t seem to have detected itquaint-tailor-52411
02/10/2021, 9:21 PMrefresh
— is this expected?incalculable-dream-27508
02/11/2021, 3:23 PMsec_rule_api = openstack.networking.SecGroupRule(
"name",
__opts__=pulumi.ResourceOptions(provider=REGIONS[dc]),
delete_before_replace=True)
and with the last line added now I'm getting
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/home/user/.pulumi/bin/pulumi-language-python-exec", line 85, in <module>
loop.run_until_complete(coro)
File "/usr/lib64/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 83, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 35, in run_pulumi_func
func()
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 83, in <lambda>
await run_pulumi_func(lambda: Stack(func))
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 106, in __init__
func()
File "/home/user/.pulumi/bin/pulumi-language-python-exec", line 84, in <lambda>
coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
File "/usr/lib64/python3.9/runpy.py", line 285, in run_path
return _run_code(code, mod_globals, init_globals,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "./__main__.py", line 190, in <module>
sec_rule_api = openstack.networking.SecGroupRule(
TypeError: __init__() got an unexpected keyword argument 'delete_before_replace'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
According to my reading of https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.ResourceOptions this should work, right?incalculable-dream-27508
02/11/2021, 3:40 PMsec_rule_api = openstack.networking.SecGroupRule(
"name",
__opts__=pulumi.ResourceOptions(provider=REGIONS[dc],
delete_before_replace=True))
average-school-38756
02/11/2021, 4:05 PMname="my-name"
shows no changes detected for pulumi up
, yet that same resource with opts=ResourceOptions(aliases=[Alias(name="my-name")]}
instead wants to do a "replace" based on a detected name changered-match-15116
02/11/2021, 9:56 PMnumerous-barista-36019
02/13/2021, 12:32 AMbetter-actor-92669
02/15/2021, 10:30 AMSDK - python
Kubernetes - GKE
pulumi v2.20.0
pulumi-kubernetes==2.8.0
Pulumi installs 146 resources from that chart. After the installation every pulumi preview
takes around 60-70 seconds. With the same resources, but without a helm chart it was around 10-13 seconds
gtime pulumi preview
61.36user 6.89system 1:05.35elapsed 104%CPU (0avgtext+0avgdata 389900maxresident)k
0inputs+0outputs (416major+501237minor)pagefaults 0swaps
gtime pulumi preview
13.97user 3.60system 0:16.07elapsed 109%CPU (0avgtext+0avgdata 132092maxresident)k
0inputs+0outputs (379major+404976minor)pagefaults 0swaps
I tried to analyse the debug log with max verbosity, but obviously I lack knowledge to identify what's wrong.
Has anyone experienced performance degradation after installing helm charts?
I need help identifying what's wrong, because now it is quite frustrating to wait for a while during each preview + update.mysterious-area-77666
02/17/2021, 2:13 PMcreamy-knife-53051
02/18/2021, 1:25 PMFile "/usr/local/lib/python3.7/site-packages/pulumi/runtime/resource.py", line 358, in do_register
resolver = await prepare_resource(res, ty, custom, props, opts)
File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/resource.py", line 86, in prepare_resource
serialized_props = await rpc.serialize_properties(props, property_dependencies_resources, res.translate_input_property)
File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 78, in serialize_properties
result = await serialize_property(v, deps, input_transformer)
File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 199, in serialize_property
value = await serialize_property(output.future(), deps, input_transformer)
File "/usr/local/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 185, in serialize_property
future_return = await asyncio.ensure_future(awaitable)
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
val = await self._future
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
val = await self._future
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
val = await self._future
[Previous line repeated 1 more time]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 157, in run
value = await self._future
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 382, in gather_futures
return await asyncio.gather(*value_futures_list)
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 116, in get_value
val = await self._future
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 178, in run
transformed: Input[U] = func(value)
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in from_input
dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in <listcomp>
dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 272, in from_input
list_items: List[Union[Any, Awaitable[Any], Output[Any]]] = [Output.from_input(v) for v in val]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 272, in <listcomp>
list_items: List[Union[Any, Awaitable[Any], Output[Any]]] = [Output.from_input(v) for v in val]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in from_input
dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 266, in <listcomp>
dict_items = [[k, Output.from_input(v)] for k, v in val.items()]
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 274, in from_input
output: Output[T] = cast(Output[T], Output.all(*list(list_items))) # type: ignore
File "/usr/local/lib/python3.7/site-packages/pulumi/output.py", line 388, in all
raise ValueError("Output.all() was supplied no inputs")
ValueError: Output.all() was supplied no inputs
error: an unhandled error occurred: Program exited with non-zero exit code: 1
It doesn't happen with pulumi==2.20.0
(tested with pulumi cli 2.14 and 2.21)clever-plumber-29709
02/18/2021, 10:08 PMfor x in cert.domain_validation_options:
# add record here
But seems like pulumi gets in an infinite loopsparse-state-34229
02/18/2021, 10:10 PMsparse-state-34229
02/18/2021, 10:10 PM