page_title | subcategory | description |
---|---|---|
morpheus_arm_app_blueprint Resource - terraform-provider-morpheus |
Provides a Morpheus arm app blueprint resource |
Provides a Morpheus arm app blueprint resource
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"
}
name
(String) The name of the arm app blueprintsource_type
(String) The source of the arm app blueprint (json, repository)
blueprint_content
(String) The content of the arm app blueprint. Used when the json source type is specifiedcategory
(String) The category of the arm app blueprintcloud_init_enabled
(Boolean) Whether cloud init is enableddescription
(String) The description of the arm app blueprintinstall_agent
(Boolean) Whether to install the Morpheus agentintegration_id
(Number) The ID of the git integrationos_type
(String) The workload operating system type (linux, windows)repository_id
(Number) The ID of the git repositoryversion_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
id
(String) The ID of the arm app blueprint
Import is supported using the following syntax:
terraform import morpheus_arm_app_blueprint.tf_example_arm_app_blueprint 1