Added module code.
This commit is contained in:
19
README.md
19
README.md
@@ -0,0 +1,19 @@
|
||||
# Azure Storage Account Module
|
||||
|
||||
This module creates an Azure Storage Account with the specified name, resource group, and location. It also allows for the creation of storage containers within the account.
|
||||
|
||||
## Variables
|
||||
|
||||
- `rg_name`: The name of the resource group where the storage account will be created.
|
||||
- `location`: The Azure region where the storage account will be created.
|
||||
- `storage_account_base_name`: A base name for the storage account. If `storage_account_name` is not provided, the module will generate a unique name using this base name and a hash of the subscription ID, resource group name, and base name.
|
||||
- `storage_account_name`: The name of the storage account. If not provided, it will be generated based on the `storage_account_base_name`.
|
||||
- `containers`: A map of storage containers to be created within the storage account. Each container is defined as an object with the following properties:
|
||||
- `name`: The name of the storage container.
|
||||
- `container_access_type`: The access level of the container (e.g., "private", "blob", "container").
|
||||
|
||||
## Outputs
|
||||
|
||||
- `storage_account_id`: The ID of the created storage account.
|
||||
- `storage_account_name`: The name of the created storage account.
|
||||
- `container_names`: A list of the names of the created storage containers.
|
||||
|
||||
Reference in New Issue
Block a user