Skip to content

Latest commit

 

History

History
91 lines (65 loc) · 3.29 KB

File metadata and controls

91 lines (65 loc) · 3.29 KB
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

cloudfoundry_mta (Resource)

Allows deploying applications and services via an MTAR archive or URL.

Further documentation: Multitarget Applications in the Cloud Foundry Environment

Example Usage

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")])
}

Schema

Required

  • space (String) The GUID of the space where the MTA will be deployed

Optional

  • 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 present
  • namespace (String) The namespace of the MTA. Should be of valid host format
  • source_code_hash (String) SHA256 hash of the file specified. Terraform relies on this to detect the file changes.

Read-Only

  • id (String) The MTA ID of the deployment
  • mta (Attributes) contains the details of the MTA object (see below for nested schema)

Nested Schema for mta

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)

Nested Schema for mta.metadata

Read-Only:

  • id (String)
  • namespace (String)
  • version (String)

Nested Schema for mta.modules

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

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