Skip to main content
Version: v1.2

Azure STORAGE-ACCOUNT

Description

Terraform configuration for Azure Blob Storage Account

Samples

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 resource group should be created. Defaults to 'true'.boolfalse
locationLocation of storage account. Defaults to 'West Europe'.stringfalse
nameName of storage account. Defaults to 'storageaccount'.stringfalse
resource_group_nameName of resource group. Defaults to 'rsg'.stringfalse
static_websiteStatic website configuration. Defaults to disabled.list(map(string))false
tagsTags for storage account. Defaults to '{}'.map(string)false
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