Skip to content

Latest commit

 

History

History
158 lines (141 loc) · 4.06 KB

arm_app_blueprint.md

File metadata and controls

158 lines (141 loc) · 4.06 KB
page_title subcategory description
morpheus_arm_app_blueprint Resource - terraform-provider-morpheus
Provides a Morpheus arm app blueprint resource

morpheus_arm_app_blueprint

Provides a Morpheus arm app blueprint resource

Example Usage

Creating the ARM app blueprint with local content in json format:

resource "morpheus_arm_app_blueprint" "tf_example_arm_app_blueprint_json" {
  name               = "example_arm_app_blueprint_json"
  description        = "example arm app blueprint"
  category           = "armtemplates"
  source_type        = "json"
  install_agent      = true
  cloud_init_enabled = true
  os_type            = "linux"
  blueprint_content  = <<EOF
{
  "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"
  }
}
EOF
}

Creating the ARM app blueprint with the blueprint fetched via git:

resource "morpheus_arm_app_blueprint" "tf_example_arm_app_blueprint_git" {
  name               = "example_arm_app_blueprint_git"
  description        = "example arm app blueprint"
  category           = "armtemplates"
  source_type        = "repository"
  install_agent      = true
  cloud_init_enabled = true
  os_type            = "linux"
  working_path       = "./test"
  integration_id     = 3
  repository_id      = 1
  version_ref        = "main"
}

Schema

Required

  • name (String) The name of the arm app blueprint
  • source_type (String) The source of the arm app blueprint (json, repository)

Optional

  • blueprint_content (String) The content of the arm app blueprint. Used when the json source type is specified
  • category (String) The category of the arm app blueprint
  • cloud_init_enabled (Boolean) Whether cloud init is enabled
  • description (String) The description of the arm app blueprint
  • install_agent (Boolean) Whether to install the Morpheus agent
  • integration_id (Number) The ID of the git integration
  • os_type (String) The workload operating system type (linux, windows)
  • repository_id (Number) The ID of the git repository
  • version_ref (String) The git reference of the repository to pull (main, master, etc.)
  • working_path (String) The path of the arm app blueprint in the git repository

Read-Only

  • id (String) The ID of the arm app blueprint

Import

Import is supported using the following syntax:

terraform import morpheus_arm_app_blueprint.tf_example_arm_app_blueprint 1