Version: v1.2
Azure Storage Account
Description
Terraform configuration for Azure Storage Account
Sample
apiVersion: core.oam.dev/v1beta1kind: Applicationmetadata:name: storage-account-devspec:components:- name: storage-account-devtype: azure-storage-accountproperties:create_rsg: falseresource_group_name: "weursgappdev01"location: "West Europe"name: "appdev01"tags: |{ApplicationName = "Application01"Terraform = "Yes"}static_website: |[{index_document = "index.html"error_404_document = "index.html"}]writeConnectionSecretToRef:name: storage-account-devnamespace: vela-system
Specification
Properties
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| create_rsg | Conditional if create Resource Group or reuse existing one | bool | false | true |
| resource_group_name | Name of Resource Group | string | true | rsg |
| location | Location of Resource Group | string | false | West Europe |
| name | Name of Storage Account | string | true | storageaccount |
| tags | Tags for Storage Account | map(string) | false | {} |
| static_website | Static website configuration | list(map(string)) | false | disabled |
| writeConnectionSecretToRef | The secret which the cloud resource connection will be written to | writeConnectionSecretToRef | false |
writeConnectionSecretToRef
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| name | The secret name which the cloud resource connection will be written to | string | true | |
| namespace | The secret namespace which the cloud resource connection will be written to | string | false |
Outputs
If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:
| Name | Description |
|---|---|
| BLOB_CONNECTION_STRING | Blob storage connection string |
| BLOB_WEB_ENDPOINT | Blob storage static web endpoint |