I am trying to setup an RDS instance with performa...
# aws
a
I am trying to setup an RDS instance with performance insights enable but having a problem specifying the kms key_id field. Using the following code snipet all tries with performance_insights_enabled fail if key_id is set. If I comment out the key_id it works. but sets the default key id.
Copy code
if bool(self.required_parameter("performance_insights_enabled")):
            master_args.performance_insights_enabled = True
            master_args.performance_insights_retention_period = self.required_parameter(
                "performance_insights_retention_period")
            # master_args.performance_insights_kms_key_id = db_master_perf_key.resource.arn,
            # master_args.performance_insights_kms_key_id = "arn:XXX",
            master_args.performance_insights_kms_key_id = ["arn:XXX"],
        else:
            master_args.performance_insights_enabled = False
Error stacck trace:
Copy code
Diagnostics:
  pulumi:pulumi:Stack (app-platform-test-ap-pipeline):
    error: Program failed with an unhandled exception:
    Traceback (most recent call last):
      File "/opt/homebrew/bin/pulumi-language-python-exec", line 192, in <module>
        loop.run_until_complete(coro)
      File "/opt/homebrew/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
        return future.result()
               ^^^^^^^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 142, in run_in_stack
        await run_pulumi_func(run)
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 56, in run_pulumi_func
        await wait_for_rpcs()
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 89, in wait_for_rpcs
        raise exn from cause
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/rpc_manager.py", line 71, in rpc_wrapper
        result = await rpc
                 ^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/resource.py", line 935, in do_register
        resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/resource.py", line 197, in prepare_resource
        serialized_props = await rpc.serialize_properties(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 216, in serialize_properties
        result = await serialize_property(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 368, in serialize_property
        element_type = _get_list_element_type(typ)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rcalosso/workspaces/infra-app-platform/generator/.venv/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 168, in _get_list_element_type
        raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
    AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
Using the latest packages:
Copy code
# Lock providers
pulumi==3.133.0
pulumi_aws==6.53.0
pulumi_random==4.16.6