Hi.
I want to provision AzureKeyVault resource where value is python dictionary with information about Kafka access. I have prepared some default values e.g. kafka url, user, etc. and I need to add specific value from another data resource (in this case DataConfluentIdentityPool).
Here is a pseudocode I’ve tried to play with
value_data = {"kafka_url": "http://fake.com:9090", "user": "fake_user"}
for name, kv_id in names.items():
KeyVaultSecret(scope=scope,
provider=provider,
id_=f"{name}-connections",
key_vault_id=kv_id,
name=f"{name}-connections",
value=Fn.merge([
value_data,
f"${{kafka-identity-pool: {identity_objects.fqn}[\"{name}\"].id}}"
]))
When try to run this code, I’m getting error message
You're using escape sequences (${...}) with CDKTF Built-in functions. This is not supported yet, and the output may be incorrect.
Does anyone have idea how to update map (dictionary) with custom data and provision it in python and cdktf?
Thank you