Skip to content

Latest commit

 

History

History
151 lines (132 loc) · 3.56 KB

arm_spec_template.md

File metadata and controls

151 lines (132 loc) · 3.56 KB
page_title subcategory description
morpheus_arm_spec_template Resource - terraform-provider-morpheus
Provides a Morpheus arm spec template resource

morpheus_arm_spec_template

Provides a Morpheus arm spec template resource

Example Usage

Creating the arm spec template with local content:

resource "morpheus_arm_spec_template" "tfexample_arm_spec_template_local" {
  name         = "tf-arm-spec-example-local"
  source_type  = "local"
  spec_content = <<TFEOF
{
  "type": "Microsoft.Storage/storageAccounts",
  "apiVersion": "2019-04-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "name": "string",
    "restrictions": [
      {
        "reasonCode": "string"
      }
    ]
  },
  "kind": "string",
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "accessTier": "string",
    "allowBlobPublicAccess": "bool",
    "allowSharedKeyAccess": "bool",
    "azureFilesIdentityBasedAuthentication": {
      "activeDirectoryProperties": {
        "azureStorageSid": "string",
        "domainGuid": "string",
        "domainName": "string",
        "domainSid": "string",
        "forestName": "string",
        "netBiosDomainName": "string"
      },
      "directoryServiceOptions": "string"
    },
    "customDomain": {
      "name": "string",
      "useSubDomainName": "bool"
    },
    "encryption": {
      "keySource": "string",
      "keyvaultproperties": {
        "keyname": "string",
        "keyvaulturi": "string",
        "keyversion": "string"
      },
      "services": {
        "blob": {
          "enabled": "bool"
        },
        "file": {
          "enabled": "bool"
        }
      }
    },
    "isHnsEnabled": "bool",
    "largeFileSharesState": "string",
    "minimumTlsVersion": "string",
    "networkAcls": {
      "bypass": "string",
      "defaultAction": "string",
      "ipRules": [
        {
          "action": "Allow",
          "value": "string"
        }
      ],
      "virtualNetworkRules": [
        {
          "action": "Allow",
          "id": "string",
          "state": "string"
        }
      ]
    },
    "supportsHttpsTrafficOnly": "bool"
  }
}
TFEOF
}

Creating the arm spec template with the template fetched from a url:

resource "morpheus_arm_spec_template" "tfexample_arm_spec_template_url" {
  name        = "tf-arm-spec-example-url"
  source_type = "url"
  spec_path   = "http://example.com/spec.json"
}

Creating the arm spec template with the template fetched via git:

resource "morpheus_arm_spec_template" "tfexample_arm_spec_template_git" {
  name          = "tf-arm-spec-example-git"
  source_type   = "repository"
  repository_id = 2
  version_ref   = "main"
  spec_path     = "./test.json"
}

Schema

Required

  • name (String) The name of the arm spec template
  • source_type (String) The source of the arm spec template (local, url or repository)

Optional

  • repository_id (Number) The ID of the git repository integration
  • spec_content (String) The content of the arm spec template. Used when the local source type is specified
  • spec_path (String) The path of the arm spec template, either the url or the path in the repository
  • version_ref (String) The git reference of the repository to pull (main, master, etc.)

Read-Only

  • id (String) The ID of the arm spec template

Import

Import is supported using the following syntax:

terraform import morpheus_arm_spec_template.tf_example_arm_spec_template 1