calm-doctor-76791
01/05/2024, 10:02 PMconfig:
azure-native:location: eastus
containerapp-environment:certificates:
- name: my-web-cert
password:
secure: xxx
value:
secure: yyy
containerapp-environment:certificates:
- name: second-web-com
password:
secure: xxx
value:
secure: yyy
containerapp-environment:env: dev
Where I would need to loop over the certificates, and grab the password and value and pass into a function creating the certificates;
certificates = config.get_object("certificates")
..
if certificates:
for certificate in certificates:
name = certificate.get("name")
password = x
value = x
cert = create_certificate(
name=name,
rg_name=rg,
environment=managed_env,
password=password,
value=value,
tags=tags,
dependsOn=managed_env,
location=location,
)
hallowed-fireman-90476
01/05/2024, 10:16 PMconfigs = pulumi.Config()
password = config.get_secret('containerapp-environment:certificates:password')
calm-doctor-76791
01/07/2024, 2:57 PMhallowed-fireman-90476
01/08/2024, 10:50 AM('containerapp-environment:certificates:password')