DEV Community

Discussion on: Understanding Terraform: A Guide to Effective IaC Practices

Collapse
 
whimsicalbison profile image
Jack

Thanks for writing this article! I hadn't heard of Bicep before, so I looked it up and discovered that it's another Infrastructure as Code tool used in Azure. If you're familiar with AWS, is this similar to AWS's CloudFormation tool?

It appears that Bicep is being used to create resources for remotely holding the Terraform state and locks. I'd be interested to see how Bicep is run, and it might be helpful to include a discussion about remote state and locks in your article.

Collapse
 
hassan_aftab profile image
Hassan Aftab

Thanks for the read! Bicep is Azure’s version of Cloudformation. I have used Bicep to spin out storage account and a blob, purpose for doing that was, so i wouldn't need to worry about tfstate for the blob that would manage tfstates for the actual project.

My current bicep code requires a resource group to be created. Then bicep creates the blob inside. After which terraform is ready to take off. 😊

I will update this later on , how my pipelines handle this use case.

Collapse
 
whimsicalbison profile image
Jack

Looking forward to reading it!