DEV Community

Discussion on: How to convert aws sam into terraform ?

loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️) • Edited on

I've not heard of any way to directly convert the two, but you can use your infra as a source of truth. Terraform can import resources into state to be managed.

You can also use the "show" command to convert state into TF code:

I've also used: in the past.

Hope that helps !

soumyaranjannaik profile image
Soumya Ranjan Naik Author

Ohh thanks for the information and resources.