Skip to main content
Version: Next

Azure Storage Account

Description#

Terraform configuration for Azure Storage Account

Sample#

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: storage-account-dev
spec:
components:
- name: storage-account-dev
type: azure-storage-account
properties:
create_rsg: false
resource_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-dev
namespace: vela-system

Specification#

Properties#

NameDescriptionTypeRequiredDefault
create_rsgConditional if create Resource Group or reuse existing oneboolfalsetrue
resource_group_nameName of Resource Groupstringtruersg
locationLocation of Resource GroupstringfalseWest Europe
nameName of Storage Accountstringtruestorageaccount
tagsTags for Storage Accountmap(string)false{}
static_websiteStatic website configurationlist(map(string))falsedisabled
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef#

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs#

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
BLOB_CONNECTION_STRINGBlob storage connection string
BLOB_WEB_ENDPOINTBlob storage static web endpoint
Last updated on by Maciej Gwizdała