oci_functions_application

This resource provides the Application resource in Oracle Cloud Infrastructure Functions service.

Creates a new application.

NOTE: Terraform will take 5 minutes after destroying an application due to a known service issue. Refer here

Example Usage

resource "oci_functions_application" "test_application" {
    #Required
    compartment_id = var.compartment_id
    display_name = var.application_display_name
    subnet_ids = var.application_subnet_ids

    #Optional
    config = var.application_config
    defined_tags = {"Operations.CostCenter"= "42"}
    freeform_tags = {"Department"= "Finance"}
    network_security_group_ids = var.application_network_security_group_ids
    image_policy_config {
        #Required
        is_policy_enabled = var.application_image_policy_config_is_policy_enabled

        #Optional
        key_details {
            #Required
            kms_key_id = oci_kms_key.test_key.id
        }
    }
    shape = var.application_shape
    syslog_url = var.application_syslog_url
    trace_config {

        #Optional
        domain_id = oci_functions_domain.test_domain.id
        is_enabled = var.application_trace_config_is_enabled
    }
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Application * update - (Defaults to 20 minutes), when updating the Application * delete - (Defaults to 20 minutes), when destroying the Application

Import

Applications can be imported using the id, e.g.

$ terraform import oci_functions_application.test_application "id"