I’m having issues conceptualizing a reliable state file management and before I deploy anything I’d like to hear what advice my stack overflow folks have to offer.
I’m in a case where I want to deploy my state file containers into my azure environment. Many of the resources exist for my mainline environment such as development and production, but have some new environments that will be spun up for pr testing.
My Infrastructure is currently on a separate lifecycle with manual deployments. I want to integrate some HCL that I’ve created and before I do this I need a storage account to be created. In my Azure infrastructure I have Virtual Network configured with multiple subnets. I want to allocate an address space for state file management and configure an NSG to control traffic for my resources. To connect the storage account I will use a private endpoint.
Because some of the infrastructure already exists, I want to append the necessary resources and configuration to the existing infrastructure, but if it doesn’t exist I want to have it created. This will require creating a VNET and getting it into state file management.