Hi, is there any easy way to convert cloudformatio...
# aws
g
Hi, is there any easy way to convert cloudformation template into pulumi code?
p
Pulumi AI
w
you said easy but didn't specify if the output should be any good or not 😛
s
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
I was afraid of that.
cf2pulumi
relies on AWS-native which doesn't support many resources.
s
If the CF code doesn't have to change, coexistence is the easiest option if you can live with having 2 IaC tools.
g
the problem was, I needed to change the parameter bud pulumi did not reflect the change to cloudformation.
b
I was hoping to use cf2pulumi to convert some CF2Pulumi... am i barking up the wrong tree thinking that cf2pulumi could convert cf to pulumi?
g
at this point it is probably easier to use Cloud3 via AWS Bedrock than
cf2pulumi
🤷
b
Claude 3?
g
e
While not extensively tested I did just share a bash script to query Cloudformation and produce a pulumi bulk import. Let me know what you think @great-sunset-355 https://github.com/louisn/pulumi-scripts I may write an article - what does the channel think is the best place for it? Medium?
b
That is cool @echoing-gold-47058... does this also do the CF YAML or just the resource imports?
e
Just resources from cloudformation cli query.