Version: v1.2

Azure Storage Account

Description

Terraform configuration for Azure Storage Account

Sample

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: storage-account-dev
  5. spec:
  6. components:
  7. - name: storage-account-dev
  8. type: azure-storage-account
  9. properties:
  10. create_rsg: false
  11. resource_group_name: "weursgappdev01"
  12. location: "West Europe"
  13. name: "appdev01"
  14. tags: |
  15. {
  16. ApplicationName = "Application01"
  17. Terraform = "Yes"
  18. }
  19. static_website: |
  20. [{
  21. index_document = "index.html"
  22. error_404_document = "index.html"
  23. }]
  24. writeConnectionSecretToRef:
  25. name: storage-account-dev
  26. 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