page_title | subcategory | description |
---|---|---|
morpheus_arm_spec_template Resource - terraform-provider-morpheus |
Provides a Morpheus arm spec template resource |
Provides a Morpheus arm spec template resource
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"
}
name
(String) The name of the arm spec templatesource_type
(String) The source of the arm spec template (local, url or repository)
repository_id
(Number) The ID of the git repository integrationspec_content
(String) The content of the arm spec template. Used when the local source type is specifiedspec_path
(String) The path of the arm spec template, either the url or the path in the repositoryversion_ref
(String) The git reference of the repository to pull (main, master, etc.)
id
(String) The ID of the arm spec template
Import is supported using the following syntax:
terraform import morpheus_arm_spec_template.tf_example_arm_spec_template 1