page_title | subcategory | description |
---|---|---|
cloudfoundry_mta Resource - terraform-provider-cloudfoundry |
Allows deploying applications and services via an MTAR archive or URL.
Further documentation:
Multitarget Applications in the Cloud Foundry Environment https://help.sap.com/docs/btp/sap-business-technology-platform/multitarget-applications-in-cloud-foundry-environment |
Allows deploying applications and services via an MTAR archive or URL.
Further documentation: Multitarget Applications in the Cloud Foundry Environment
resource "cloudfoundry_mta" "mtar" {
space = "02c0cc92-6ecc-44b1-b7b2-096ca19ee143"
mtar_path = "./my-mta_1.0.0.mtar"
extension_descriptors = ["./prod.mtaext", "prod-scale-vertically.mtaext"]
namespace = "test"
source_code_hash = join("", [filesha256("./my-mta_1.0.0.mtar"), filesha256("./prod.mtaext"), filesha256("prod-scale-vertically.mtaext")])
}
space
(String) The GUID of the space where the MTA will be deployed
deploy_url
(String) The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.'extension_descriptors
(Set of String) The paths for the MTA deployment extension files.mtar_path
(String) The local path where the MTA archive is present. Either this attribute or mtar_url need to be set.mtar_url
(String) The remote URL where the MTA archive is presentnamespace
(String) The namespace of the MTA. Should be of valid host formatsource_code_hash
(String) SHA256 hash of the file specified. Terraform relies on this to detect the file changes.
id
(String) The MTA ID of the deploymentmta
(Attributes) contains the details of the MTA object (see below for nested schema)
Read-Only:
metadata
(Attributes) an identifier, version and namespace that uniquely identify the MTA (see below for nested schema)modules
(Attributes List) the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content (see below for nested schema)services
(List of String)
Read-Only:
id
(String)namespace
(String)version
(String)
Read-Only:
app_name
(String)created_on
(String)module_name
(String)provided_dendency_names
(List of String)services
(List of String)updated_on
(String)uris
(List of String)
Import is supported using the following syntax:
# terraform import cloudfoundry_mtar.<resource_name> <space_guid/mta_id> OR
# terraform import cloudfoundry_mtar.<resource_name> <space_guid/mta_id/namespace> if MTA in custom namespace
terraform import cloudfoundry_mtar.my_mtar 02c0cc92-6ecc-44b1-b7b2-096ca19ee143/a.cf.app/hello