Member-only story
Using Azure Storage Account as a Backend in Pulumi
Using Azure Storage as a backend for Pulumi state allows you to control storage location, manage security, and perform auditing.
Like Terraform, Pulumi uses state to keep metadata about infrastructure, allowing it to manage cloud resources effectively. By default, if not otherwise specified, Pulumi utilises Pulumi Cloud for this purpose.
Though the state doesn’t store cloud credentials, the decision on where to maintain it plays a vital role in boosting team collaboration and ensuring security. Enterprises often opt for granular control, as this approach allows them to align effectively with their overarching policies and security measures, ensuring that all aspects of their operations remain secure and well-coordinated.
In this article, we will explore how to use an Azure Storage Account Blob container as a backend for state management.
Creating A Storage Account
Establishing a storage account for the state backend presents a unique circular dependency issue. We need to utilize Pulumi to create the storage account for the state backend, but that account itself also needs to be set up by Pulumi. We can bootstrap the creation of storage account by either…