Hi, have been trying out Pulumi with EKS for the l...
# general
Hi, have been trying out Pulumi with EKS for the last two evenings, it has been nothing but a source of frustration for me. First I had to figure how to befriend pulumi and git, then learn how to install python packages where they need to be, now im stuck with a cluster i don't have permissions to that cannot even run kubernetes dashboard. Packages did not work for me either. With terraform it was so much simpler even for a noob like me.
Hi @hundreds-ghost-24810, sorry to hear you're having trouble with Pulumi. Can you describe the problems you ran into in a bit more detail? Also, if you haven't already read this documentation, I suggest giving it a read. It is a good primer on Pulumi and EKS.
Try to use Pulumi in the YAML version. For me is more easy to read and understand.
Pulumi YAML is a good suggestion. Here's a Pulumi python EKS example which should get you up and running, as well. https://github.com/pulumi/examples/tree/master/aws-py-eks
@hundreds-ghost-24810 Pulumi will create a virtualenv for you after you do
pulumi new python
. Whenever you start working on your Pulumi project, be sure to run
source venv/bin/activate
when you change directories. When you're done, run the
command. You might find these self-guided workshops helpful. https://pulumi.awsworkshop.io/20_cloud_engineering_python.html If you have any feedback on the workshops, or anything isn't working as expected, please let me know.
https://www.pulumi.com/docs/guides/adopting/from_kubernetes/ please rework this example, just try not to show it to anyone using EKS.
i have a helm chart i have a eks cluster Oh error: Program failed with an unhandled exception: Traceback (most recent call last): File "/home/misha/.pulumi/bin/pulumi-language-python-exec", line 179, in <module> loop.run_until_complete(coro) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 126, in run_in_stack await run_pulumi_func(lambda: Stack(func)) File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func await wait_for_rpcs() File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 73, in wait_for_rpcs await RPC_MANAGER.rpcs.pop() File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/rpc_manager.py", line 68, in rpc_wrapper result = await rpc File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/resource.py", line 685, in do_register_resource_outputs serialized_props = await rpc.serialize_properties(outputs, {}) File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/rpc.py", line 207, in serialize_properties result = await serialize_property( File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/rpc.py", line 378, in serialize_property value = await serialize_property( File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/runtime/rpc.py", line 361, in serialize_property future_return = await asyncio.ensure_future(awaitable) File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/output.py", line 124, in get_value val = await self._future File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/output.py", line 170, in run value = await self._future File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/output.py", line 170, in run value = await self._future File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/output.py", line 195, in run transformed: Input[U] = func(value) File "/home/misha/sayollo/venv/lib/python3.8/site-packages/pulumi/output.py", line 259, in lift return UNKNOWN if isinstance(v, Unknown) else cast(Any, v)[key] TypeError: 'NoneType' object is not subscriptable exception calling callback for <Future at 0x7f94deff8040 state=finished returned Empty> Traceback (most recent call last): File "/usr/lib/python3.8/concurrent/futures/_base.py", line 328, in _invoke_callbacks callback(self) File "/usr/lib/python3.8/asyncio/futures.py", line 374, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File "/usr/lib/python3.8/asyncio/base_events.py", line 764, in call_soon_threadsafe self._check_closed() File "/usr/lib/python3.8/asyncio/base_events.py", line 508, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed