oci_os_management_hub_lifecycle_environment

This resource provides the Lifecycle Environment resource in Oracle Cloud Infrastructure Os Management Hub service.

Creates a new lifecycle environment.

Example Usage

resource "oci_os_management_hub_lifecycle_environment" "test_lifecycle_environment" {
    #Required
    arch_type = var.lifecycle_environment_arch_type
    compartment_id = var.compartment_id
    display_name = var.lifecycle_environment_display_name
    os_family = var.lifecycle_environment_os_family
    stages {
        #Required
        display_name = var.lifecycle_environment_stages_display_name
        rank = var.lifecycle_environment_stages_rank

        #Optional
        defined_tags = {"Operations.CostCenter"= "42"}
        freeform_tags = {"Department"= "Finance"}
    }
    vendor_name = var.lifecycle_environment_vendor_name

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    description = var.lifecycle_environment_description
    freeform_tags = {"Department"= "Finance"}
}

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 Lifecycle Environment * update - (Defaults to 20 minutes), when updating the Lifecycle Environment * delete - (Defaults to 20 minutes), when destroying the Lifecycle Environment

Import

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

$ terraform import oci_os_management_hub_lifecycle_environment.test_lifecycle_environment "id"