https://pulumi.com logo
#aws
Title
# aws
g

great-sunset-355

03/04/2024, 2:20 PM
Hi, is there any easy way to convert cloudformation template into pulumi code?
p

plain-eye-2667

03/04/2024, 2:35 PM
Pulumi AI
w

witty-battery-28013

03/04/2024, 2:45 PM
you said easy but didn't specify if the output should be any good or not 😛
s

stocky-restaurant-98004

03/04/2024, 5:27 PM
It doesn't look like cf2pulumi works too well anymore, so I would say that import or referencing a stack output is your best bet. https://www.pulumi.com/registry/packages/aws/api-docs/cloudformation/getstack/
g

great-sunset-355

03/05/2024, 6:33 AM
I was afraid of that.
cf2pulumi
relies on AWS-native which doesn't support many resources.
s

stocky-restaurant-98004

03/06/2024, 3:46 PM
If the CF code doesn't have to change, coexistence is the easiest option if you can live with having 2 IaC tools.
g

great-sunset-355

03/06/2024, 5:11 PM
the problem was, I needed to change the parameter bud pulumi did not reflect the change to cloudformation.