oci_apm_synthetics_script

This resource provides the Script resource in Oracle Cloud Infrastructure Apm Synthetics service.

Creates a new script.

Example Usage

resource "oci_apm_synthetics_script" "test_script" {
	#Required
	apm_domain_id = oci_apm_synthetics_apm_domain.test_apm_domain.id
	content = var.script_content
	content_type = var.script_content_type
	display_name = var.script_display_name

	#Optional
	content_file_name = var.script_content_file_name
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	parameters {
		#Required
		param_name = var.script_parameters_param_name

		#Optional
		is_secret = var.script_parameters_is_secret
		param_value = var.script_parameters_param_value
	}
}

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

Import

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

$ terraform import oci_apm_synthetics_script.test_script "scripts/{scriptId}/apmDomainId/{apmDomainId}"