https://pulumi.com logo
#general
Title
# general
l

lemon-ambulance-1111

12/05/2023, 4:32 AM
Hi team, I have a list of destination security groups in sg.yml file. How I can provision the yaml file to main.py and connect the destination security groups to source security group
s

salmon-account-74572

12/05/2023, 5:17 PM
You’d need to unmarshall the YAML file into a data structure in Python and then use the appropriate Pulumi resources and methods to connect the security groups together.
l

lemon-ambulance-1111

12/07/2023, 1:54 AM
@salmon-account-74572 if you provide me an example, it would be helpful
s

salmon-account-74572

12/07/2023, 3:56 PM
I’d suggest giving Pulumi AI a try and see if it can help generate some example Pulumi code for you. I don’t know if it would be able to help with unmarshalling the YAML, but a quick web search should turn up some articles that will be helpful. I apologize, but I don’t have the capacity to write any code for you at this time. However, feel free to continue to post questions in this Slack community as you make progress with your code.